insert_after_symbol
Insert code after a named declaration (function, method) without reading the file to find the line. Preview by default; apply to write.
Instructions
Insert text on a new line AFTER a named declaration (e.g. add a sibling function/method). The outline supplies the insertion point. Default PREVIEW; apply=true writes. No need to Read the file to find the line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Declaration to insert after. | |
| text | Yes | Text inserted on a new line after the declaration. | |
| path | No | File holding the symbol (else resolved via the index). | |
| line | No | 0-based line to disambiguate same-named symbols (optional). | |
| apply | No | Write to disk (default false = preview only). | |
| projectPath | No | ||
| backend | No | ||
| maxResults | No |