wait
Blocks until a background edit, export, or render job finishes and returns its result instead of polling; if it is still running, call it again.
Instructions
Wait for a long call to end, instead of sleeping and checking. job is the id from a background: true call of edit, export or render_ui, or the requestId (or job: line) of an edit, also one whose call timed out on your side. Blocks until the job is done or failed and answers its result, the answer the call itself would have given. running means your timeout ran out and the job goes on: call wait again. superseded means the job ended with an earlier app run or its answer aged out: read the canvas. If this call cannot reach the app at all, the app is down: run scripts/mcp-wait-up.sh.
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": "<job>"
},
"name": "wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes | The job id. | |
| timeout | No | Seconds to block, default 120, at most 280. 0 answers the state now. | |
| sessionId | No | Your session id from init: a requestId is per session. |