Watch deploy
watch_deployWait for a deploy to finish: call it right after deploy_project, with the project_id it returned. It returns when the deploy settles: status running (give the user url), or error (read error_explained and get_project_logs, fix the files, and call deploy_project again under the same name). A static site settles at once, since nothing boots. It streams each step (the machine booting, the install, the app going live) as a progress notification; relay them so a two minute deploy does not look like a hang. If the deploy is still going after wait_seconds (default 180), it returns status spawning: call it again to keep waiting. A harness that cuts a tool call short (jcode stops one at 30 seconds) can pass a smaller wait_seconds, such as 20, and call again until it settles; that timeout is the harness's, not a failed deploy. Give the user url: the share link, which survives redeploys unless the app's address is changed, and works whether the project is public or restricted.
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": {
"project_id": "<project_id>"
},
"name": "watch_deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | the id of the project to watch, as returned by deploy_project | |
| wait_seconds | No | how long to follow the deploy before returning, in seconds. The call returns as soon as the deploy settles, so this only bounds a deploy that is still going. Default 180, maximum 300 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| note | Yes | ||
| error | No | ||
| steps | No | ||
| status | Yes | ||
| settled | Yes | ||
| retryable | No | ||
| share_url | No | ||
| project_id | Yes | ||
| machine_url | No | ||
| error_explained | No |