delete_file
Deletes files or directories from the Downloads folder, with an optional recursive mode for removing directory contents. Use it to clean up downloaded items while restricting deletion to that safe location.
Instructions
Delete a file or directory (only allowed in Downloads folder for safety)
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 | Path to the file or directory to delete (must be in Downloads) | |
| recursive | No | If true, delete directories and their contents recursively (default: false) |