Download document
download_documentSave a Paperless document's file to server disk and return the local path. Supports original or OCR'd archive version to avoid embedding large files in context.
Instructions
Save a document's file to disk on the machine running this MCP server and return the path. Files are written to PAPERLESS_DOWNLOAD_DIR (defaults to the system temp directory). The bytes are deliberately not returned inline — a PDF as base64 would consume the entire context.
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": {
"id": "<id>"
},
"name": "download_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| version | No | 'archive' is the OCR'd PDF/A Paperless generated; 'original' is the file as it was consumed. | archive |
| filename | No | Override the filename. Relative names are resolved inside the download directory. |