Delete a local draft
delete_draftDelete a local draft and its associated photos without affecting any published Leboncoin ad. Use force: true only when the draft was published or its state is unknown.
Instructions
Removes a local draft and its copied photos. Does not touch anything on Leboncoin - a published ad stays published. Drafts that were published, or whose publish ended in an unknown state, need force: true, because that local record is the only trace linking a live ad back to this 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": {
"draftId": "<draftId>"
},
"name": "delete_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Delete even if the draft was published or ended in an unknown state. | |
| draftId | Yes |