Get File Info
get_file_infoRetrieve metadata for a file or directory, including size, timestamps, permissions, type, and hard-link count, without reading its content; access is limited to allowed directories.
Instructions
Retrieve detailed metadata about a file or directory. Returns comprehensive information including size, creation time, last modified time, permissions, type and hard-link count. This tool is perfect for understanding file characteristics without reading the actual content. Only works within allowed directories.
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": "get_file_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file or directory to describe. Absolute, or relative to an allowed directory; it must resolve inside the allowed directories. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes |