rotate_component
Set a board device's absolute rotation angle while keeping its position unchanged, so components can be reoriented in LibrePCB projects.
Instructions
Set a board device's rotation, keeping its position.
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": {
"project_path": "<project_path>",
"component": "<component>",
"rotation_deg": "<rotation_deg>"
},
"name": "rotate_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board | No | Board name, UUID or index; default: first | |
| component | Yes | Component designator (e.g. 'R1') or UUID | |
| project_path | Yes | Path to the project's *.lpp file or its directory | |
| rotation_deg | Yes | Absolute rotation |