get_file_info
Retrieve metadata for a local file, including name, extension, size, formatted size, and timestamps, to inspect file details before reading or analyzing it.
Instructions
Get metadata about a file (name, extension, size, formatted size, timestamps).
Args:
path: Relative or absolute path to the file.
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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |