Get run details: status, errors, target, timing, token usage and cost, by run UUID or public id; usage is cumulative.
Arguments
commandRunsGetRunCommand!requiredRead a run by its UUID or public run id (run_…), including its labels and grouped execution, control, usage and schema metadata. The returned ETag guards metadata updates.
command.runIdID!requiredRun UUID, or any public run id (run_… or an older id) as legacy run reads, run events and usage records carry it. The response id is the run UUID that every other run operation takes.
Responses
query GetRun($command: RunsGetRunCommand!) { getRun(command: $command) { id runId status projectId target { type agentKind name id } input output error { code message details } title labels parentRunId rootRunId createdAt updatedAt startedAt finishedAt config execution { id timeoutSeconds retryLimit attempt exitCode durationMs toolErrorCount logs startMode } taskId conversationId inputMessageId outputMessageId batchId trigger { type id name toolCallId nodeId } usage { funding modelCalls captureStatus } descendants { total active hasFailures } artifacts { artifactId type mediaType sizeBytes sha256 href } metadata etag }}{ "data": { "getRun": { "id": "string", "runId": "string", "status": "string", "projectId": "string", "target": { "type": "string", "agentKind": "string", "name": "string", "id": "string" }, "input": {}, "output": {}, "error": { "code": "string", "message": "string", "details": {} }, "title": "string", "labels": {}, "parentRunId": "string", "rootRunId": "string", "createdAt": "string", "updatedAt": "string", "startedAt": "string", "finishedAt": "string", "config": {}, "execution": { "id": "string", "timeoutSeconds": 0, "retryLimit": 0, "attempt": 0, "exitCode": 0, "durationMs": 0, "toolErrorCount": 0, "logs": "string", "startMode": "string" }, "taskId": "string", "conversationId": "string", "inputMessageId": "string", "outputMessageId": "string", "batchId": "string", "trigger": { "type": "string", "id": "string", "name": "string", "toolCallId": "string", "nodeId": "string" }, "usage": { "funding": "string", "modelCalls": 0, "captureStatus": "string" }, "descendants": { "total": 0, "active": 0, "hasFailures": false }, "artifacts": [ { "artifactId": "string", "type": "string", "mediaType": "string", "sizeBytes": 0, "sha256": "string", "href": "string" } ], "metadata": {}, "etag": "string" } }}The RunsVersionedRun! in data.getRun.