Stop a draft
stop_draftStops a project's draft (the running copy that sync_files fills) and removes its pod and dev_url. It also discards, for good, every change the draft held that was never committed with deploy_files, including changes kept from an earlier automatic stop. It is not routine cleanup: a draft stops by itself after 30 minutes without a sync and its changes are then kept for 24 hours. Use it when the user wants the draft and its unsaved changes gone, or to free one of the 3 draft slots; the result says whether a draft was running and whether kept changes were discarded. The deployed app and its commits are not touched. Idempotent: reports stopped=false when no draft was running. Requires a read-write token.
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": "stop_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | the managed project id (from list_projects) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| stopped | Yes | true when a draft was running and is now stopped; false when none was running | |
| discarded_unsaved | Yes | true when this call deleted unsaved changes: files the stopped draft had received that were never committed, or the changes kept from an earlier draft that stopped on its own. They cannot be brought back |