execute_command
Execute a single CAD command through a live WebSocket bridge for plan or assembly modes, updating the canvas instantly and adding to undo history.
Instructions
Execute a single command through the live WebSocket bridge. Works for both plan mode (project:* namespace) and assembly/harness mode (harness:* namespace). PREFER execute_commands (plural) for batching — much faster. Canvas updates immediately, action added to undo history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | Constructor parameters as JSON (excluding store refs) | |
| command | Yes | Command class name. Plan: "AddNodeCommand", "AddLinkCommand", etc. Assembly: "AddPartsCommand", "BulkConnectionCommand", "EditConnectorCommand", etc. | |
| namespace | No | Target a specific tab by namespace (e.g. "project:uuid"). Omit to use the most recently connected tab. |