extract_document_data
Extract metadata, text, or structure from Word, Excel, or PowerPoint files to access content without modifying the original document.
Instructions
Read data from a document: metadata (author/title/etc.), text (plain text plus a block count), or structure (paragraphs/sheets/slides). Read-only — never modifies the input file. To compare two documents, use compare_documents.
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": {
"input_path": "<input_path>"
},
"name": "extract_document_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | What to extract: metadata, text, or structure. | metadata |
| options | No | Tool options. | |
| input_path | Yes | Path to the source document. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||