block_code_mutate
Replace the body of an existing bound AST symbol with new code, then run a verify command to confirm the change. For targeted edits only; use the host editor for broader changes.
Instructions
Replace one already-bound AST symbol body. Not a general editor: new files, new symbols, tests, and multi-file edits should use the host editor, then source_sync and source_binding_accept.
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": {
"blockId": "<blockId>",
"symbol": "<symbol>",
"newCode": "<newCode>",
"verifyCommand": "<verifyCommand>"
},
"name": "block_code_mutate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| blockId | Yes | ||
| newCode | Yes | ||
| projectRoot | No | ||
| taskContextId | No | ||
| verifyCommand | Yes | ||
| includeStructured | No | ||
| expectedSourceHash | No |