Agents / TypeScript SDK
Get agent run
Drill into a specific agent run: full input/output summary plus every tool call (agent_run_steps) with its arguments, output, duration, and tokens. Use for debugging or auditing what an agent actually did. Read-only.
pipeline.getAgentRunDeterministic operationParameters
workspaceIdOptional · string- Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
runIdRequired · string- See the input schema for this field.
await pipeline.getAgentRun({
"runId": "00000000-0000-4000-8000-000000000000"
})Full input schema
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"minLength": 1,
"description": "Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client."
},
"runId": {
"type": "string"
}
},
"required": [
"runId"
]
}