Check run
check_runFetch current status for a run (status, charge_usd, viewer_url, error). Pass THIS run's run_id after update_design — do not look up the previous run. viewer_url is only present when status is completed and includes ?run= for this generation. Never reuse a viewer_url from an earlier run. If concurrency_notice is present, show it to the user.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"job_id": "<job_id>",
"run_id": "<run_id>"
},
"name": "check_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| run_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| job_id | No | ||
| run_id | Yes | ||
| status | Yes | ||
| log_tail | No | ||
| next_step | No | ||
| charge_usd | No | ||
| created_at | No | ||
| viewer_url | No | ||
| commit_hash | No | ||
| completed_at | No | ||
| notify_email | No | ||
| summary_diff | No | ||
| still_running | No | ||
| concurrency_notice | No | ||
| previous_preview_stale | No |