Upload a PDF
upload_documentUploads a base64 PDF of 1 to 20 pages, up to 5 MB. Pages in Letter, A4, Legal and other common sizes are fitted onto US Letter, and landscape pages are turned to portrait. Returns a document ID and a private document token. Remote URLs are not fetched.
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": {
"filename": "<filename>",
"pdf_base64": "<pdf_base64>"
},
"name": "upload_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| pdf_base64 | Yes |