Download document
download_documentFetch a document's original file or archive PDF as an embedded resource without saving it to disk; files over the limit return a report with their web URL.
Instructions
Get the original file of a document, or its archive version, as an embedded resource.
The file comes attached as MCP content with its MIME type and file name (also in the JSON report before it), never written to disk. A file over the server's download limit (512 KiB unless the administrator changed it) is not attached: delivered is false and the report holds its web_url. Use get_document_content when you only need the text.
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": {
"document_id": "<document_id>"
},
"name": "download_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | original: the file as it was uploaded. archive: the searchable PDF/A Paperless made from it; not every document has one (text files do not). | original |
| document_id | Yes | Document id, from search_documents. |