API referenceChanging a session
Run a step again
POST
Runs one earlier tool call again, with the same tool and arguments, as a step of its own; the model sees its result on the next turn. Only while the session is idle. The same toolCallId and idempotencyKey run it once.
bearerheader
AuthorizationBearer <token>An API token
id*stringA session id
application/json- body
toolCallId*stringAn earlier step
idempotencyKey*stringRunning again
application/json- response
toolCallId*stringThe new step
curl -X POST 'http://127.0.0.1:7777/sessions/ses_6c1f2a0b9d3e4f5a6b7c/retry' \ -H 'Content-Type: application/json' \ -d '{ "toolCallId": "call_1", "idempotencyKey": "retry-1"}'Example Response
{ "toolCallId": "string"}