Skip to content

Submit client-side tool results

POST
/v1/sessions/{session_id}/tool-results
curl --request POST \
--url https://app.everruns.com/api/v1/sessions/example/tool-results \
--header 'Content-Type: application/json' \
--data '{ "tool_results": [ { "result": { "url": "https://example.com/orders/42" }, "tool_call_id": "toolu_01933b5a00007000800000000000001" } ] }'

Accepts tool results executed by the client and resumes the agent workflow. Session must be in waiting_for_tool_results status.

session_id
required
string

Session ID (prefixed, e.g., session_…)

Media type application/json

Request to submit client-side tool results

object
tool_results
required

Tool results from the client

Array<object>

A single tool result from the client

object
error

Error message if the tool failed

string | null
Example
Refund failed: order is outside refund window
result

Result value (any JSON — object, array, string, number, etc.). Null if the tool failed. Example: {"url": "https://example.com/orders/42"}.

tool_call_id
required

Tool call ID (correlates with the tool call from tool.call_requested event)

string
Example
toolu_01933b5a00007000800000000000001
Example
[
{
"result": {
"url": "https://example.com/orders/42"
},
"tool_call_id": "toolu_01933b5a00007000800000000000001"
}
]

Tool results accepted and workflow resumed

Media type application/json

Response from submitting tool results

object
accepted
required

Number of tool results accepted

integer
status
required

Session status after submission

string
Example generated
{
"accepted": 1,
"status": "example"
}

Invalid session ID or request

Session not found

Session not in waiting_for_tool_results state

Internal server error