Discard draft
discard_draftThrow away the page's unpublished draft and stop its preview URL resolving. The live page is NOT affected — if the page is published it keeps serving its current version. Use this when the user abandons a direction and wants to start over, not to "clean up" after publishing: publishing already consumes the draft. Ask the user first. The draft is the only copy of that work and it cannot be recovered.
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": {
"pageId": "<pageId>"
},
"name": "discard_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | The page whose draft should be discarded. |