swap_component
Replace an instance node's main component with a different component while maintaining its position and size.
Instructions
Swap the main component of an existing INSTANCE node, replacing it with a different component while keeping position and size.
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": {
"nodeId": "<nodeId>",
"componentId": "<componentId>"
},
"name": "swap_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | INSTANCE node ID in colon format e.g. 4029:12345 | |
| componentId | Yes | Target COMPONENT node ID in colon format (from get_local_components) |