Poll a build or test run
build_statusRead a build, test run or fork by build_id. Pass wait_s: 50 and it waits up to 50 s for the state to change before answering, so you need no sleep between calls; call it again until terminal (deploy build 4-8 min, test run 2-4, fork seconds). Do not end your turn or rely on a background timer meanwhile: in a non-interactive session that ends the session mid-build. deployed: live at https://; give the user that URL (a new host can answer 504 for a minute or two while it is placed). rejected: reasons name each violation; fix before a new submission, preserving the selected source or committed-reference workflow. States: building, deploying (keep polling), deployed, undoing, rejected, failed (undone and refunded), stuck (an operator is paged; do not resubmit), tested / test_failed (test_ref). Never resubmit while building, deploying or undoing: that starts a second operation.
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": {
"build_id": "<build_id>"
},
"name": "build_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused | |
| wait_s | No | Seconds (0-50) to wait for the state to change before answering; 0 answers at once. | |
| build_id | Yes |