Inspect file metadata and SHA-256
file_infoRetrieve file metadata and SHA-256 hash without exposing contents, enabling safe pre-edit verification of large text files within a confined workspace.
Instructions
Return bounded metadata and whole-file SHA-256 for a regular file without exposing its bytes; use this SHA before editing large text files. Uses the same workspace confinement, link denial, and sensitive-path policy as text tools.
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 | ||
| workspace_id | No | Required when server_info lists multiple workspaces. |