swap_component
Swap a component instance with another by providing the instance ID and new component ID, with an option to keep existing overrides.
Instructions
Swap one component instance for another.
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": {
"instanceId": "<instanceId>",
"newComponentId": "<newComponentId>"
},
"name": "swap_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instanceId | Yes | Instance to swap | |
| newComponentId | Yes | New component ID | |
| preserveOverrides | No | Keep existing overrides (default: true) |