Get run status
get_runGet a run's status, its latest progress note, the agent's final response, and what it changed in the workspace (commit, branch, files). Poll this with the run_id returned by prompt or init_project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The run_id returned by prompt, init_project or start_build. | |
| server_id | Yes | The server's id, as returned by create_server or list_servers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | No | Latest progress note while it runs. | |
| goal | No | What the run was asked to do. | |
| usage | No | What it cost: cost_usd, token counts, turns, duration_ms. | |
| change | No | What it changed in the workspace: commit, branch, merge_commit, files_changed, insertions, deletions, files. | |
| result | No | The agent's final response. | |
| run_id | Yes | Run id. | |
| status | Yes | Run status. | |
| question | No | What it is asking, when status is awaiting_input. Answer with prompt and follow_up_of. | |
| server_id | Yes | The server it ran on. | |
| created_at | No | ISO 8601 timestamp. | |
| project_id | No | The project whose folder it worked in. null at the server root. | |
| message_type | No | Who wrote the goal: user, or a system run such as bring-up. |