delete_file
Delete a single text file from a Direct session after verifying its SHA-256 hash. Requires explicit confirmation to prevent accidental or recursive deletion.
Instructions
Delete one bounded regular text file inside a Direct session. Requires the current SHA-256 and confirm_delete=true; directories and recursive deletion are unsupported.
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": {
"session_id": "<session_id>",
"path": "<path>",
"expected_sha256": "<expected_sha256>",
"confirm_delete": "<confirm_delete>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| review_id | No | ||
| session_id | Yes | ||
| confirm_delete | Yes | Must be true after reviewing the exact path and hash. | |
| expected_sha256 | Yes |