get_file_info
Retrieve file or directory metadata including type, size, timestamps, permissions, and a text preview of the first 10 lines.
Instructions
Return metadata about a file or directory.
Includes: type, size, creation time, modification time, permissions, and a content preview for text files (first 10 lines).
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 | Absolute path to the file or directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |