producer_mutate_component
Modify an existing component by applying surgical AST mutations for style, text, variants, or children—no full regeneration required.
Instructions
Applies surgical mutations (style, text, variants, children) to an existing component without full regeneration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| component | Yes | The component AST to patch | |
| mutations | Yes | Array of mutations (SetNodeStyle, SetNodeText, AddVariant, InsertChild, RemoveNode) |