Skip to content
Schema

Wiring and nets

draw_bus

Draw a bus between two points.

Usage

draw_bus <X1> <Y1> <X2> <Y2>

Angle brackets mark required arguments and square brackets optional ones. Available in the schematic editor. You can issue this yourself, and the AI agent issues the identical command — there is no second, hidden interface.

Arguments

X1
Required
Y1
Required
X2
Required
Y2
Required

4 required, 0 optional.

Behaviour

A bus is a BUNDLE, not a wire: a wire that merely touches it is NOT connected to it, which is what stops every member shorting together. Label the bus with a member-declaring name — a vector like D[0..7] or a group like {SDA,SCL} — then join each member wire with place_bus_entry and label that wire with the member it carries.

How the agent uses it

  • The agent works in a perceive / act / verify / recover loop: it describes the design, issues draw_bus or another command, checks the result, and undoes the change if the check fails.
  • Commands report what they actually did. A refusal is a result, not a silent no-op — which is what lets the agent recover instead of building on a change that never happened.
  • Anything the agent can do here, you can do yourself, and the reverse.

Try draw_bus in the editor

Free to start on macOS, Windows and Linux. Bring your existing KiCad and Altium libraries.