insert_code
Insert new code lines before or after an existing symbol while matching indentation; writes only after parse validation to prevent syntax breaks.
Instructions
Insert new_text on its own lines before or after an existing symbol (where='before'|'after'), matching its indentation. Parse-validated before writing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | No | ||
| force | No | ||
| where | No | after | |
| dry_run | No | ||
| new_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |