Get File Info
file_infoRetrieve metadata for files and directories, including size, timestamps, permissions, and type, by providing a path.
Instructions
Get metadata about a file or directory: size, created/modified dates, permissions, and type.
Args:
path (string): Path to inspect.
Returns: size in bytes, created/modified timestamps, POSIX permission bits, and whether it's a directory or symlink.
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": "file_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to inspect |