file_info
Retrieves metadata for a filesystem path, including content hash, text encoding, and newline style, to verify files before guarded edits.
Instructions
Report metadata for one path, including hash, encoding and newline for text.
Read-only. The content_hash is what the guarded mutating tools accept as
expected_hash. Symlink metadata describes the link, not its target. With
a workspace rooted at the filesystem root, the reported path keeps its
leading '/' so it is exactly the absolute path.
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 |