apply_surgical_patch
Replace an existing code symbol with new implementation; automatic re-indexing keeps the codebase consistent.
Instructions
Replace an existing symbol with entirely new code. Re-indexing is automatic.
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": {
"symbol_id": "<symbol_id>",
"new_code": "<new_code>"
},
"name": "apply_surgical_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_code | Yes | ||
| symbol_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |