fix_range
Rewrite an explicit line range for code outside a symbol, such as module-level config, a switch branch, or embedded markup. Prefer symbol edits when possible; stale ranges are rejected.
Instructions
Rewrite an explicit line range. The escape hatch for code that does not live inside a symbol — module-level configuration, a branch of a switch, markup embedded in the source. Prefer fix_symbol where one applies: line numbers move when earlier patches land, and a stale range is rejected rather than applied.
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": {
"file_path": "<file_path>",
"start_line": "<start_line>",
"end_line": "<end_line>",
"instruction": "<instruction>"
},
"name": "fix_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | ||
| end_line | Yes | 1-based, inclusive. | |
| file_path | Yes | ||
| start_line | Yes | 1-based, inclusive. | |
| instruction | Yes | ||
| allow_secrets | No |