delete_file
Delete a project file with automatic backup to .mcp-backups/ for safety. Does not delete directories.
Instructions
Delete a file from the project. A backup is automatically created in .mcp-backups/ before deletion. Cannot delete directories.
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": {
"filepath": "<filepath>"
},
"name": "delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | Path to the file, relative to project root or absolute |