get_file_metadata
Retrieve file or directory metadata (size, type, modification time, permissions) to investigate file properties and check access rights.
Instructions
Returns metadata about a file or directory: path, size, type, modification
time, and permissions. Path must be within allowed roots.
Use this when investigating file properties, checking permissions, or
assessing file sizes. Does not modify system state.
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_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |