Download Source Document
get_documentDownload the base64 source document attached to a purchase invoice, sale invoice, journal, or bank transaction; large or metadata-only requests return filename and size instead.
Instructions
Download the source document (base64) attached to a purchase invoice, sale invoice, journal, or bank transaction. Documents larger than ~5 MB, or when metadata_only=true, return name and size only (the base64 payload is omitted to protect the MCP transport).
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": {
"entity_type": "<entity_type>",
"id": "<id>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the record whose document to download. | |
| entity_type | Yes | Which record the source document belongs to. | |
| metadata_only | No | Return only the filename and size, not the (potentially large) base64 contents. |