Delete draft
delete_draftDelete a draft. Deletion cannot be undone. Only drafts can be deleted; content already published on platforms is not deleted. Pass the most recently read updatedAt; a mismatch returns 409. (Required scope: cd.posts.draft)
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": {
"postId": "<postId>",
"updatedAt": "<updatedAt>",
"confirm": "<confirm>"
},
"name": "delete_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postId | Yes | ||
| confirm | Yes | true = the user has approved this specific action. Without it the request is rejected with 409 AGENT_USER_CONFIRMATION_REQUIRED. | |
| updatedAt | Yes | The most recently read updatedAt | |
| workspaceId | No | Optional: id of the workspace to operate on (look it up with list_workspaces); if omitted, the default personal workspace is used. A developer API key can only use the workspace it is bound to. |