Insert
insertPlace text at a chosen line in a file, including the beginning or end, to perform line-based edits using an absolute path.
Instructions
Insert text at a specific line in a file.
insert_line = 0: Insert at the beginning
insert_line = N: Insert after line N
insert_line = -1: Insert at the end
insert_text should typically end with a newline
Use absolute paths
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to file | |
| insert_line | Yes | Line number to insert after (0 = beginning, -1 = end) | |
| insert_text | Yes | Text to insert (should end with newline) |