Get document
get_documentRetrieves metadata for one Paperless document—names, dates, tags, custom fields, note count, and web URL—without returning its text; use the content tool to read the full text.
Instructions
Read one document: names, dates, tags, readable custom fields, notes count and web_url.
Never returns the document text; use get_document_content for it. Custom fields are rendered by type: select as its label, monetary as 'EUR 12.50', document links as the linked documents' id and title (title null if hidden). Sections in include that the user may not read in Paperless (notes and history need their own permissions, the audit log can be off) are listed in unavailable instead of failing.
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": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | Extra sections: notes (their text), history (the newest 50 changes, no OCR text), metadata (file names, sizes, checksums), versions (file versions), suggestions (the classifier's correspondents, tags, types, paths, dates). | |
| document_id | Yes | Document id, from search_documents. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| tags | Yes | ||
| added | Yes | ||
| notes | No | Only with include notes. | |
| owner | Yes | Null: no owner, visible to every user. | |
| title | Yes | ||
| created | Yes | ||
| history | No | Only with include history. | |
| web_url | Yes | Link to the document in the Paperless web UI. | |
| modified | Yes | ||
| versions | No | Only with include versions. | |
| mime_type | Yes | ||
| page_count | Yes | ||
| notes_count | Yes | ||
| suggestions | No | Only with include suggestions. | |
| unavailable | No | Included sections the user may not read in Paperless. | |
| storage_path | Yes | ||
| correspondent | Yes | ||
| custom_fields | Yes | ||
| document_type | Yes | ||
| file_metadata | No | Only with include metadata. | |
| original_file_name | Yes | ||
| archive_serial_number | Yes |