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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"component": "<component>",
"mutations": "<mutations>"
},
"name": "producer_mutate_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| component | Yes | The component AST to patch | |
| mutations | Yes | Array of mutations (SetNodeStyle, SetNodeText, AddVariant, InsertChild, RemoveNode) |