get_file_info
Retrieve metadata for a file or directory path, including size, modification date, and type. Returns JSON or an error if path is missing.
Instructions
Get metadata for a file, directory, or missing path.
Args: path: File or directory path
Returns: JSON string with path metadata or an error message
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 |