pcb_move_component
Reposition, rotate, flip, or retitle a PCB component by setting its X/Y coordinates, rotation angle, layer, lock state, or designator, with all coordinates in mil relative to the canvas origin.
Instructions
Move and/or rotate a component. Can also change its layer (flip), lock status, designator, etc. Coordinates are PCB canvas coordinates in mil (1 mil = 0.001 inch), relative to the canvas origin: +X = rightward, +Y = upward. Lengths (widths, diameters) are also in mil. Use pcb_canvas_origin to read/set the origin offset and pcb_convert_coordinates to convert between canvas and data coordinates.
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": {
"primitiveId": "<primitiveId>",
"document": "<document>"
},
"name": "pcb_move_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | New X coordinate | |
| y | No | New Y coordinate | |
| layer | No | Target layer: "TopLayer"/1 or "BottomLayer"/2 | |
| document | Yes | Target document UUID — auto-switches to this document before executing. Get UUIDs from list_instances or editor_get_open_tabs. | |
| rotation | No | New rotation angle in degrees | |
| designator | No | New designator (e.g. "R1", "U2") | |
| instance_id | No | Target EasyEDA instance ID (8-char hex). Required when multiple instances are connected. Omit when only one instance is connected (auto-selected). Use list_instances to see connected instances. | |
| primitiveId | Yes | The component primitive ID | |
| primitiveLock | No | Whether to lock the component |