document_info
Retrieve document metadata such as file type, size, and modification time without reading the full content. Get page counts for PDFs or line counts for text files to quickly assess document details.
Instructions
Return metadata for a document without reading its full content.
Includes file type, size, and modification time; page count and PDF metadata for PDFs; line count for text-based files.
Args: path: File path inside the allowed root.
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": "document_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||