insert_at_line
Insert content at a specific line number in a file using a 1-based line numbering system. Specify the file path, line number, and content to insert.
Instructions
Insert content at a specific line number. Line number is 1-based.
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_at_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file | |
| line | Yes | Line number to insert at (1-based) | |
| content | Yes | Content to insert |