process_document
Uploads and processes a PDF from a URL or local file path, returning a new document and its status; check with get_document before reading content.
Instructions
Upload and process a PDF from a URL or a local file path (≤100MB). Processing typically takes 0-3 minutes depending on document size (estimate: 2 seconds per page). Returns the new document and its processing status; call get_document() to confirm it has finished before reading its content.
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": {
"url": "<url>"
},
"name": "process_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to a PDF document or local file path | |
| folder_id | No | Target folder ID. Use "root" for the root folder, or omit to use the user's default folder (configured in settings). |