Withdraw a pending draft
withdraw_draftTakes back a pending draft this connection's person filed, when it should not have been filed at all (a duplicate, the wrong document, the user changed their mind). It takes the draft's kind (as its create or update tool filed it, the same kinds revise_draft takes, plus bank_clearing, logo_update and date_shift), its draftId and a short reason. The draft is closed as rejected with the reason "Withdrawn by the AI that filed it", so it leaves the approval queue and a second filing of the same document is no longer refused as a duplicate of it. Only a draft still waiting can be withdrawn, and only one filed through the connector by the same person; a draft filed by someone else, already approved or already rejected is refused, naming who filed it or when it was decided. A draft that only needs a correction is revised with revise_draft instead of withdrawn. Nothing is posted or deleted. Returns the kind, the draftId and when it was withdrawn.
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": {
"kind": "<kind>",
"draftId": "<draftId>"
},
"name": "withdraw_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | The draft kind the filing tool returned, e.g. 'invoice', 'quote', 'delivery_order', 'supplier_debit_note', 'bank_clearing', 'asset_register'. | |
| reason | No | Why it is withdrawn, in the reviewer's language; it is shown after the fixed lead. | |
| draftId | Yes | The draftId the filing tool returned (or my_work lists). |