wp_discard_draft
Delete a staged WordPress draft without publishing. Requires allow_prod=true for production sites.
Instructions
Delete a staged wpops draft without publishing. Prod writes require allow_prod=true.
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": {
"install": "<install>",
"draft_id": "<draft_id>"
},
"name": "wp_discard_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| install | Yes | ||
| draft_id | Yes | ||
| allow_prod | No |