cliDeterministic
Get agent run
pipeline 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.
Parameters
workspaceId
string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
runIdrequired
string
No description.
Example
CLI commandbash
pipeline get-agent-run \--run-id "00000000-0000-4000-8000-000000000000"
Response
Success response schemajson schema
{"type": "object","properties": {"run": {"type": "object","properties": {"id": {"type": "string"},"workspaceId": {"type": "string"},"agentRole": {"type": "string"},"status": {"type": "string"},"trigger": {"type": "string"},"startedAt": {"type": "string"},"endedAt": {"type": "string"},"tokensUsed": {"type": "number"},"toolCalls": {"type": "number"},"costCents": {"type": "number"},"summary": {"type": "string"},"error": {"type": "string"},"skillProvenance": {"type": ["object","null"]},"createdAt": {"type": "string"}},"required": ["id","workspaceId","agentRole","status","trigger"]},"steps": {"type": "array","items": {"type": "object","properties": {"id": {"type": "string"},"agentRunId": {"type": "string"},"stepIndex": {"type": "number"},"toolName": {"type": "string"},"tokensIn": {"type": "number"},"tokensOut": {"type": "number"},"costCents": {"type": "number"},"durationMs": {"type": "number"},"status": {"type": "string"},"error": {"type": "string"},"createdAt": {"type": "string"}},"required": ["id","agentRunId","stepIndex","toolName","status"]}}},"required": ["run","steps"]}
Exit codes
- 1
- Invalid input or local configuration.
- 2
- The API or tool returned an error.
- 3
- Authentication failed.
- 4
- A network request failed.