List a session's tool calls

GET/o/{org}/p/{project}/sessions/{session}/tool-calls
View .md

Indexed from the captured transcript, in call order. program is the command a shell call ran (git, bun), so it can be filtered without reading inputs.

Authenticate with an org API key or a signed-in session.

Path parameters

orgstringrequired

The org's slug or id. A caller with no role in the org gets 404.

projectstringrequired

A Project's handle (name) or id, resolved inside {org} — OR the reserved sentinel _ meaning "no Project" (a direct-repo / repo-less dispatch on POST; "no Project constraint, resolve by session id alone" everywhere else). A real handle that doesn't match the session's actual Project is 404.

sessionstringrequired

The session's full id (execution_id).

Query parameters

toolstringoptional

Only this tool.

programstringoptional

Only calls that ran this program, e.g. git.

outcomestringoptional
One ofsuccesserrorcancelled
limitintegeroptional
Default 100min 1max 1000

Responses

200The tool calls.
tool_callsarray of ToolCallrequired
10 item fields
call_keystringrequired
ordinalintegeroptional
toolstringrequired
programstring | nulloptional

The first program a shell call ran.

programsarray of stringoptional

Every program a shell call ran.

inputstring | nulloptional
outcomestring | nulloptional
One ofsuccesserrorcancellednull
exit_codeinteger | nulloptional
error_codestring | nulloptional
end_timestampstring | nulloptional
Format date-time
400An unknown outcome.
errorstringoptional

A sentence for a person.

codestringoptional

Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.

error_codestringoptional

The machine code on routes that name it this way.

messagestringoptional
requestIdstringoptional
401No bearer, an unknown, revoked or expired one, or an API key on a route keys cannot call.
errorstringoptional

A sentence for a person.

codestringoptional

Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.

error_codestringoptional

The machine code on routes that name it this way.

messagestringoptional
requestIdstringoptional
404No such resource for the caller, including one that exists in an org the caller cannot see.
errorstringoptional

A sentence for a person.

codestringoptional

Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.

error_codestringoptional

The machine code on routes that name it this way.

messagestringoptional
requestIdstringoptional