Sevdesk attach document
sevdesk_attach_documentAttach the stored PDF to a document's EXISTING sevDesk voucher, so a voucher that was created without its Beleg gets one. Changes nothing else about the voucher — not its status, dates, sums, positions or payment. It does NOT work on a booked voucher: sevDesk refuses every change to one, an attachment included, with "You can only update draft documents". Reopen it first with sevdesk_reopen_voucher. (An older sevDesk account model did allow this, which is why this tool used to claim it was safe on paid vouchers — it is not.) DRY RUN BY DEFAULT, and the dry run is itself the audit: it reads each voucher back and reports which ones currently have no document and whether Book-AI-ze holds a PDF to give them. With no document_ids it targets every document in this account that has a sevdesk_id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sevdesk_attach_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max documents in one call (default 50, max 200) | |
| dry_run | No | Default TRUE — reports what is missing without uploading. Pass false to attach. | |
| overwrite | No | Attach again even if the voucher already has a document, adding a second copy. Default false, so a backfill can be re-run safely. | |
| document_id | No | A single document id, for convenience. | |
| document_ids | No | Specific document ids. Omit to consider every document that has a sevDesk voucher. |