get_document_info
Extract document metadata including page count, sheet count, slide count, and file size from Excel, Word, PDF, and text files to analyze document structure and properties.
Instructions
Get document metadata (page count, sheet count, slide count, file size, 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": "get_document_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the document file | |
| file_type | No | Override file type detection (optional). Specify format explicitly instead of relying on extension |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| pages | No | ||
| sheets | No | ||
| slides | No | ||
| tables | No | ||
| headers | No | ||
| success | No | ||
| encoding | No | ||
| metadata | No | ||
| file_size | No | ||
| file_type | No | ||
| key_count | No | ||
| item_count | No | ||
| line_count | No | ||
| paragraphs | No | ||
| total_cols | No | ||
| total_rows | No | ||
| total_words | No |