insert_at_line
Inserts specified content at a specific line in a file, shifting existing content down. Ideal for targeted edits within code or text files without replacing entire sections. Suitable for precise modifications in a codebase.
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. |