edit_html_range
Replace a range of lines in an HTML file with new content by sending only the changed lines, reducing token usage.
Instructions
Replace a range of lines in an HTML file with new content (most token-efficient edit — send only the changed lines)
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>",
"new_content": "<new_content>"
},
"name": "edit_html_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_line | Yes | Last line to replace (1-indexed, inclusive) | |
| file_path | Yes | ||
| start_line | Yes | First line to replace (1-indexed) | |
| new_content | Yes | Replacement content for the specified lines |