Plecs Layout Check
plecs_layout_checkChecks schematic geometry in an open PLECS model, reporting overlapping component boxes, diagonal wire segments, and wires crossing components to flag layout readability issues.
Instructions
Check schematic geometry of a model that is open in PLECS.
Uses the bounding box per component from plecs.webserver getCircuitBitmap
plus Position/Points from the .plecs text, and reports only what is
certain: LAYOUT-001 (error) two component boxes intersect, LAYOUT-002
(warning) a wire polyline has a diagonal segment, LAYOUT-003 (info) a wire
is drawn across a component that is not one of its endpoints, LAYOUT-004
(info) a polar two-terminal part has terminal 1 on the wrong side for reading
order (horizontal: left, vertical: top) and carries the exact direction /
flipped to apply. Orientation is opt-in (include_orientation=True): it is a
house style, and roughly two thirds of the bundled demos do not follow it. A crossing is cosmetic - PLECS connects only through
explicit connections - but it makes the schematic hard to read.
Top-level schematic only; margin absorbs the ~2 unit rounding between
schematic coordinates and rendered pixels.
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": {
"model_name": "<model_name>"
},
"name": "plecs_layout_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| margin | No | ||
| model_name | Yes | ||
| include_wires | No | ||
| include_orientation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||