Schematic: tidy layout
sch_tidyRedraws a KiCad schematic sheet into titled functional blocks with signal-flow layout, canonical idiom drawings and design notes, while verifying the netlist is unchanged and ERC stays clean.
Instructions
Re-draw a schematic sheet so it reads like a hand-drawn professional sheet WITHOUT changing the circuit: titled
functional blocks in signal-flow columns, canonical drawings per idiom (LDO, op-amp loop, crystal, LED chain), support
parts wired at the pin they serve, supplies up and grounds down, design notes, smallest paper that fits. Nothing is
written unless KiCad's netlist of the WHOLE project is identical before and after and ERC reports nothing new. A sheet
wired by hand is left alone (style_used: 'kept') unless force=true; sheets with sheet symbols, buses or several
instances are refused. style 'pro2' (default); when the checks refuse it a simpler style is drawn: style_used says
which, fallback says why.
Example: sch_tidy() · sch_tidy(sheet='power.kicad_sch', dry_run=true) · sch_tidy(blocks=[{"id":"U2","title":"MCU"}])
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sch_tidy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Also re-lay a hand-wired sheet. | |
| paper | No | A4, A3 ... (default: smallest that fits). | |
| route | No | off: no routed wires inside blocks. | |
| sheet | No | Sub-sheet file or sheet name (default: root sheet). | |
| style | No | pro2 (default): idiom templates, flow columns, notes; pro: blocks + wires; labels: every connection a pin label. | |
| blocks | No | Block hints: {id: anchor ref, title?, note?, members? [refs]}. | |
| frames | No | Block frames + titles (default true). | |
| symfix | No | pro2: overprinting pin texts. hint (default) reports them; auto redraws the sheet's copy of Copper-imported symbols only (never KiCad stock); off: silent. | |
| dry_run | No | ||
| preview | No | attach a PNG (default false) | |
| project | No | project path (default: active) | |
| while_open | No | refuse (default) | revert | |
| title_block | No | title, date, rev, company, comment1..9 (title/date auto-filled when empty). |