Extract source text and tables
doc_extractExtract exact source text by paragraph/page range or keyword, dump tables, and return matching locations from DOCX, PPTX, Markdown, and TXT files; paragraph numbers align with a document map.
Instructions
Extract exact source text by paragraph/page range or keyword, or dump tables. Supports .docx, .pptx, .md, .markdown, and .txt. Paragraph numbers match doc_map.
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": {
"path": "<path>"
},
"name": "doc_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End paragraph/page, inclusive. | |
| find | No | Return matching blocks plus surrounding context. | |
| path | Yes | ||
| start | No | Start paragraph/page, inclusive. | |
| search | No | Return only matching paragraph/page numbers. | |
| tables | No | Dump all tables for supported formats. | |
| context | No | Context blocks around keyword matches. |