Rotate Schematic Component
rotate_schematic_componentRotate a component in a KiCad schematic to an absolute angle (0, 90, 180, 270) by specifying the file path and reference designator, with optional mirroring.
Instructions
Rotate a placed symbol in the schematic.
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": {
"schematicPath": "<schematicPath>",
"reference": "<reference>",
"angle": "<angle>"
},
"name": "rotate_schematic_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | Yes | Absolute rotation in degrees (0, 90, 180, 270). This is the symbol's final orientation, not a relative increment — passing 90 sets the symbol to 90° regardless of its current angle (unlike KiCad's UI 'R' key). | |
| mirror | No | Optional mirror axis | |
| reference | Yes | Reference designator (e.g., R1, U1) | |
| schematicPath | Yes | Path to the .kicad_sch file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |