insert_lines_code
Insert lines at a specified line number in a file, adding content exactly where needed without overwriting existing lines.
Instructions
Insert new lines at a specific position in a file
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": {
"path": "<path>",
"line": "<line>",
"content": "<content>"
},
"name": "insert_lines_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | The line number where to insert (1-based) | |
| path | Yes | The path to the file to modify | |
| content | Yes | The content to insert |