insert_at_line
Inserts specified content at a designated line in a file, shifting existing content downward. Ideal for targeted edits within large codebases or precise modifications to file structures.
Instructions
Inserts the given content at the given line in the file, pushing existing content of the line down. In general, symbolic insert operations like insert_after_symbol or insert_before_symbol should be preferred if you know which symbol you are looking for. However, this can also be useful for small targeted edits of the body of a longer symbol (without replacing the entire body).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | The content to be inserted. | |
line | Yes | The 0-based index of the line to insert content at. | |
relative_path | Yes | The relative path to the file. |