remove_symbol
Remove a symbol from a file by first previewing changes and then confirming with a token to apply.
Instructions
Remove a symbol from file. Phase 1: returns diff + token. Phase 2: confirm with token to apply.
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>",
"projectRoot": "<projectRoot>",
"symbolName": "<symbolName>"
},
"name": "remove_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to file | |
| projectRoot | Yes | Project root (REQUIRED) | |
| symbolName | Yes | Symbol to remove | |
| className | No | Class name (optional) | |
| force | No | Skip dependency check | |
| confirm | No | Set true to apply a pending operation | |
| confirmationToken | No | Token from Phase 1 dry-run |