Get file info
get_file_infoCheck whether a workspace-relative path exists and return its kind, size, and modification time; use missing_ok=true to probe absence without failing the call.
Instructions
Return kind, size and modification time of a path. missing_ok=true answers ok with data.exists:false for a missing path instead of not_found (works inside read_batch items too).
Use when: you need to know whether a path exists or how big it is. Use missing_ok=true to probe existence without failing the call or the batch.
Avoid when: you need the content (read_file).
Output: kind, size_bytes, modified_unix_seconds, exists when missing_ok=true. Missing path gives not_found (or ok with exists:false and missing_ok=true).
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": {
"relative_path": "<relative_path>"
},
"name": "get_file_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| missing_ok | No | true = answer ok with exists:false for a missing path instead of not_found (default false). | |
| relative_path | Yes | Workspace-relative ('.' = root); absolute/.. outside it rejected. |