get_document_info
Retrieve document metadata, including PDF page counts, Word/PPT chunk counts, or Excel sheet names, before reading to understand document size.
Instructions
Get metadata about a document: total pages (PDF), chunks (Word/PPT), or sheet names (Excel). ALWAYS call this first before reading to understand the document size.
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": {
"filePath": "<filePath>"
},
"name": "get_document_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the file (.pdf, .docx, .xlsx, .xls, .pptx, .ppt, .csv) | |
| password | No | Optional password for encrypted/protected PDF files |