Process File
process_fileConvert PDF, Word, Excel, PowerPoint, or ZIP files into markdown from a URL or local path, with retries for blocked downloads and an option to save the full markdown to disk.
Instructions
Convert PDF, Word, Excel, PowerPoint, ZIP to markdown. A refused download is retried in a headless browser; error_code download_blocked means the site serves the file to neither, and not_a_document means the URL is a web page (use crawl_url). Use output_path to persist the full unsliced converted markdown to disk and receive a slim response.
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | File URL or local path (PDF, Office, ZIP). Supports http/https URLs (no file extension needed; Speaker Deck and Docswell deck pages and arXiv abstract pages lead to their PDF), file:// URIs, and absolute paths. | |
| llm_model | No | LLM model | |
| overwrite | No | Overwrite an existing output file at output_path. Defaults to False. | |
| max_size_mb | No | Max file size in MB | |
| output_path | No | Absolute file path (auto .md extension) to persist the full unsliced converted markdown. When set, the response is slimmed to metadata+file path. content_limit/content_offset still affect the response copy but not the on-disk file. | |
| llm_provider | No | LLM provider | |
| content_limit | No | Max characters to return (0=unlimited) | |
| auto_summarize | No | Auto-summarize large content | |
| content_offset | No | Start position for content (0-indexed) | |
| summary_length | No | 'short'|'medium'|'long' | medium |
| include_metadata | No | Include metadata | |
| max_content_tokens | No | Max tokens before summarization | |
| extract_all_from_zip | No | Extract ZIP contents | |
| include_content_in_response | No | When True (with output_path set), keep content in the response too. Note: the response copy is still subject to content_limit/content_offset slicing; only the on-disk file holds the full unsliced payload. Defaults to False. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||