Parse Document
parse_documentParse local PDF, DOCX, PPTX, XLSX, and text files to extract text and document elements with selectable parsing strategies, including OCR for scanned documents.
Instructions
Parse a local document and extract text.
Supports PDF, DOCX, PPTX, XLSX, and text-based files (.txt, .log, .py, etc).
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": {
"file_path": "<file_path>"
},
"name": "parse_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strategy | No | Parsing strategy (auto, fast, hi_res, ocr_only) | auto |
| file_path | Yes | Absolute path to file on host machine |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||