insert_symbol
Insert a line of text next to a named declaration in source code, before or after it. Preview changes by default; set apply=true to write to disk.
Instructions
Insert text next to a named declaration — position=after (default)|before. The outline gives the point (no Read). PREVIEW by default; apply=true writes. Use instead of Read-then-Edit to add a declaration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | 0-based line; disambiguate same-named (optional). | |
| path | No | File holding the symbol (else resolved via the index). | |
| text | Yes | Text to insert (own line). | |
| apply | No | Write to disk (default false = preview). | |
| symbol | Yes | Declaration to insert next to. | |
| backend | No | ||
| position | No | `after` (default) | `before`. | |
| maxResults | No | ||
| projectPath | No |