delete_file
Delete a file by specifying its project-relative path, with automatic snapshot capture for undo capability.
Instructions
Delete a file at a project-relative path. Snapshot captures the bytes for undo.
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": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Project-relative path of the file to delete |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | Yes | ||
| _hints | Yes | ||
| requiresHarnessSession | Yes |