Safely delete file
delete_fileDelete a file only when its current SHA-256 matches the expected hash, preventing accidental removal of modified files. Provide project, path, and hash to proceed.
Instructions
Delete one existing file only when the caller supplies its exact current SHA-256.
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": {
"project": "<project>",
"path": "<path>",
"expectedSha256": "<expectedSha256>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| project | Yes | ||
| expectedSha256 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| deleted | Yes | ||
| project | Yes |