insert
Use this tool to insert text at a specified line in a file by providing the file path, line number, and new text, ensuring precise file modifications.
Instructions
Insert text at a specific line in the file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
insert_line | Yes | Line number where text should be inserted | |
new_str | Yes | Text to insert | |
path | Yes | Absolute path to the file |
Input Schema (JSON Schema)
{
"properties": {
"insert_line": {
"description": "Line number where text should be inserted",
"type": "number"
},
"new_str": {
"description": "Text to insert",
"type": "string"
},
"path": {
"description": "Absolute path to the file",
"type": "string"
}
},
"required": [
"path",
"insert_line",
"new_str"
],
"type": "object"
}