replace_lines
Replace a range of lines in an open file with new text. Specify line numbers and optional file path to target a specific tab.
Instructions
Replace lines begin through end (inclusive, 1-based) in the active file with text. Pass path to target a specific open file regardless of which tab is focused.
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": {
"begin": "<begin>",
"end": "<end>",
"text": "<text>"
},
"name": "replace_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| begin | Yes | ||
| end | Yes | ||
| text | Yes | ||
| path | No |