mcp

v0.1.3
io.ohmstead/mcp Checked 3 days ago Published 17 days ago

Build wiring schematics in Ohmstead: parts, wires, terminal strips, cables, checks.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

whoami Who am I

The signed-in Ohmstead user, plan, and the teams and classes they're in (with their role).

list_projects List projects

The user's Ohmstead projects, newest first. Personal workspace by default; pass team (name or id, see whoami) for that team's projects you can see.

ParameterTypeDescription
teamstringTeam or class name or id. Omit for your personal projects.

get_project Get project

A project's subsystems, components (tag → Codex part), P&ID items and lines, wires (grid rows) and current issues. Set format=json for the raw document.

ParameterTypeDescription
project_id *string
formatstring

get_bom Get bill of materials

The project's bill of materials: devices by Codex part (fuses and breakers per trip rating), terminal strip blocks and accessories, connector housings with their contacts, seals, plugs, backshells and locks, splices, cables by spec with total length, and loose wire by gauge and color with total length. format=csv gives a spreadsheet-ready CSV.

ParameterTypeDescription
project_id *string
formatstring

export_project_file Export project file

The project as an Ohmstead project file (.ohmstead): plain text, one line per part and wire, sorted, addressed by tag, with drag positions and draw order in the last section. Commit it to Git or edit it and bring it back with import_project_file. Lines starting with # at the top list references that were left out because what they point at no longer exists.

ParameterTypeDescription
project_id *string

import_project_file Import project file

Read an Ohmstead project file (.ohmstead text). With project_id it goes over that project: components, subsystems and wires keep their ids by tag, so saved positions and embeds survive. Without apply it only reports what would change (always do that first and show the user); apply=true saves. Without project_id it makes a new project named title (Free plan: max 3). Parts resolve by id, then by maker and number; anything missing or ambiguous is named and nothing is saved.

ParameterTypeDescription
text *string
applyboolean
project_idstring
teamstringTeam or class for a new project. Omit for your personal workspace.
titlestringName for a new project (without project_id).

create_project Create project

Create a new project (Free plan: max 3, always public). sample=true starts from the sample project (the Arduino Parking Sensor template). Pass team (name or id) to create it in a team or class: it starts private to you and the team's owner/admins; share it from Ohmstead.

ParameterTypeDescription
title *string
sampleboolean
teamstringTeam or class name or id (you must be an editor/student or up). Omit for your personal workspace.

update_project Update project settings

Rename, change status/visibility (Pro/Student only for private), default signal flow, title block fields, the sizing standard and its ampacity column, the length unit, the voltage-drop limits, or the spare-terminal percentage. title_block keys are the PDF template's field ids (built-in: drawingNo, drawnBy, customer, rev; custom template fields have their own ids).

ParameterTypeDescription
project_id *string
ambient_cAmbient temperature the ampacity is corrected for, in °C (0–100). null = the default 40 °C (inside the enclosure).
bom_reportbooleanPDF: a bill of materials, the last section (default on when the project has anything to list).
bundle_minFewest wires between two subsystems that draw as one bundle on screen (one trunk line; it never prints). Default 3; null resets it.
connector_tagsstringTags for new in-line connectors (category connector): x = X10, X11… (default), jp = J1… for female, P1… for male. Existing ones keep their tags.
default_blockstring | nullTerminal block part (id or part number) new strips and strip terminals use when none is picked. null = generic block.
default_pe_blockstring | nullSame, for protective-earth strips. null = generic PE block.
drop_branch_pctBranch voltage-drop limit — from the last fuse or breaker to the load — in % of the signal's volts (0–100). null = the default 3 %.
drop_total_pctTotal voltage-drop limit to the supply, in % of the signal's volts (0–100). null = the default 5 %.
flowstring
gauge_on_labelsbooleanPrinted wire labels include the gauge ("24VDC (+) 18 AWG BU"). Default false.
gauge_unitsstringWire gauge units in the grid, labels and PDF (default awg). In mm2 projects a bare gauge number means mm².
harness_minDeprecated: the old name of bundle_min.
harness_reportbooleanPDF: a drawing sheet and a breakout table per harness you made (default true). Bundles never print.
length_unitstringUnit lengths are entered and shown in (default ft). Stored lengths are metres either way.
pack_on_fixbooleanfix_fanouts / Fix all re-pack the strips they touch.
pid_sheetsbooleanPDF: P&ID sheets after the schematic (default on when the project has P&ID items).
pinout_reportbooleanPDF: a pinout table per mated pair, feed-through and wired unmated connector (default true).
project_typeWhat the project is; sets defaults. vehicle (vehicle / harness): fix_fanouts uses splices; enclosure (cabinet) and electronics: terminal strips. null clears it.
sizing_columnstring | nullAmpacity / insulation column of the standard (e.g. "75C", "105C-outside"); must be one of its columns. null = the standard's default.
sizing_reportbooleanPDF: a sizing report page, one section per fuse or breaker (default on when any wire has sizing data).
sizing_standardstringSizing standard behind gauge and fuse suggestions (default nec). electronics: dev boards, breakouts and header pins, ampacity down to 30 AWG and no minimum size on DC or signal wires.
spare_terminal_pctPacking (Clean up, fix_fanouts) appends this many spare terminals per strip, in % of its used terminals (0–50), empty and unlocked at the end. null = none.
statusstring
strip_namingstringTags for new strips: tb = TB1 / TB-PWR1 (default), iec = -X1, -X2. Existing strips keep their tags.
strip_reportbooleanPDF: a terminal strip report page per strip (default true).
titlestring
title_blockobject
visibilitystring

add_components Add components

Place Codex parts in a project under unique tags (e.g. PLC_MAIN, PSU1, K1); no tag = the next free one for the part's category (in-line connectors: X10… or J1 / P1, see update_project connector_tags). The part must already exist in the Codex (search_codex / save_part). subsystem = name or id of an existing subsystem.

ParameterTypeDescription
components *array
project_id *string

update_components Update components

Retag a component, relink it to another Codex part, move it into a subsystem (subsystem: name/id, or "" for top level), put an I/O module in a PLC slot (plc + slot; a module already in that slot is taken out), or set a fuse/breaker's trip rating (trip_a; must be one of the part's allowed ratings when it lists any), or pick the contact of an in-line connector's pin by hand (contact_by_pin). Identify by current tag.

ParameterTypeDescription
changes *array
project_id *string

remove_components Remove components

Delete components (devices or terminal strips) by tag, with every wire and cable on them. Modules in a removed PLC's rack come out of it; linked P&ID items stay and are unlinked. Nothing is deleted if any tag is unknown.

ParameterTypeDescription
project_id *string
tags *array

add_subsystem Add subsystem

Create a subsystem (group) to organize components, optionally nested under a parent subsystem, with its own signal flow.

ParameterTypeDescription
name *string
project_id *string
flowstring
parentstring

update_subsystem Update subsystem

Rename a subsystem, move it under another parent (parent: name/id, or "" for top level; its components and child subsystems come with it), change its signal flow, or mark it as an enclosure (every wire or cable crossing its frame must then pass a feed-through or gland on its wall).

ParameterTypeDescription
project_id *string
subsystem *stringName or id
enclosurebooleantrue = an enclosure (cabinet, box): crossings need a feed-through or gland; false = a plain subsystem
flowstring
namestring
parentstring

split_subsystem Split subsystem

Split a subsystem in two: move some of its own components and child subsystems into a new subsystem beside it (same parent, signal flow and collapsed state; not an enclosure). Use it when a collapsed block has too many ports to fit a sheet. Wires and cables don't change; the ones between the two halves run between two blocks. Name what moves with components (tags) and/or subsystems (names or ids), all directly inside the subsystem, or pass half: true to move about half, keeping blocks wired to each other together. At least one member must stay.

ParameterTypeDescription
name *stringName of the new subsystem
project_id *string
subsystem *stringName or id of the subsystem to split
componentsarrayTags of components directly in the subsystem to move
halfbooleantrue = pick about half automatically, by wiring; don't combine with components / subsystems
subsystemsarrayNames or ids of child subsystems to move (with everything in them)

remove_subsystem Remove subsystem

Delete a subsystem. Nothing else is deleted: its components and child subsystems move up to its parent (or the top level).

ParameterTypeDescription
project_id *string
subsystem *stringName or id

layout_view Layout of a view

Run the schematic layout for one view (the project, or a subsystem's drill-down) and list every block's position and size and every print page's frame, so blocks and pages can be placed without guessing. Block x, y are relative to the block's own subsystem (what set_block_positions takes); ax, ay are absolute in the view (what pages use). Pages are a fixed 1504 × 800 frame; automatic pages (auto:0, auto:1…) cover whatever no placed page holds. Takes a few seconds, up to ~15 s on a large project.

ParameterTypeDescription
project_id *string
subsystemstringSubsystem whose drill-down view this is (name or id). Omit for the project view.

set_block_positions Set block positions

Pin blocks (components, terminal strips or subsystems) at positions in one view, instead of where auto-layout puts them. x, y are the block's top-left, relative to its own subsystem in that view (layout_view shows current values). Unpinned blocks keep laying out automatically. Wires reroute in the app.

ParameterTypeDescription
blocks *array
project_id *string
subsystemstringSubsystem whose drill-down view this is (name or id). Omit for the project view.

clear_block_positions Clear block positions

Unpin every block in one view so it goes back to auto-layout. Other views keep theirs.

ParameterTypeDescription
project_id *string
subsystemstringSubsystem whose drill-down view this is (name or id). Omit for the project view.

add_page Add print page

Place a print page: a fixed 1504 × 800 frame in one view with its top-left at x, y (absolute view coordinates, as layout_view's ax, ay and frames). Blocks whose centre is inside print on it; the rest go on automatic pages after the placed ones. Pages print in the order they were added within each view.

ParameterTypeDescription
name *string
project_id *string
x *number
y *number
subsystemstringSubsystem whose drill-down view this is (name or id). Omit for the project view.

update_page Update print page

Rename or move a print page. page: id or name of a placed page, or an automatic page "auto:0", "auto:1"… (with subsystem for a drill-down view; automatic pages can only be renamed, and an empty name gives back the automatic one).

ParameterTypeDescription
page *string
project_id *string
namestring
subsystemstringSubsystem whose drill-down view this is (name or id). Omit for the project view.
xnumber
ynumber

remove_page Remove print page

Remove a placed print page (id or name). Its blocks stay where they are and print on automatic pages.

ParameterTypeDescription
page *string
project_id *string
subsystemstringSubsystem whose drill-down view this is (name or id). Omit for the project view.

add_terminal_strip Add terminal strip

Add a terminal strip (auto-tagged TB1, TB2…). Usually fix_fanouts creates strips for you; use this for planned strips. Its terminals use `block` if given, else the project default block, else a generic block (terminal_type, clamps_per_side).

ParameterTypeDescription
project_id *string
blockstringTerminal block part for this strip: part id or part number, or "PE" for the project's PE block. Omit for the project default.
clamps_per_sideinteger
subsystemstring
terminal_typestring
terminalsinteger

add_splice Add splice

Add splices (auto-tagged SP1, SP2…): one-conductor joints like a terminal strip, created on demand. Every wire lands on SP1:1 and a splice takes any number of wires. Usually fix_fanouts via "splice" creates them for you. part = a Codex splice part (id or part number, category splice) whose wire range and most wires validate_project checks; omit for a generic splice. Remove one with remove_components.

ParameterTypeDescription
project_id *string
countinteger
partstringSplice part id or part number (category splice). Omit for a generic splice.
subsystemstring

set_strip_blocks Set strip terminal blocks

Set the terminal block part of strip terminals (a range by label, or all). Wires keep their level: bare labels become level A on a multi-level block and back. Refused if wires sit on a level the new block doesn't have. block = part id or part number; omit (null) to return the terminals to the strip default.

ParameterTypeDescription
project_id *string
strip *stringStrip tag, e.g. TB1
blockstring | null
fromstringFirst terminal label (default: first)
tostringLast terminal label (default: last)

optimize_strips Optimize terminal strips

Re-pack terminal strips to the fewest terminals: each net becomes one jumpered run sized to its wires (block capacity), empty spares go, like signals sit together, unlocked terminals are renumbered 1..n (locked ones keep their numbers). Multi-level and diode/LED blocks, cabled nets, and nets whose wires don't fit a run's clamp range (block wire_mm2) are left as they are. With spare_terminal_pct set (update_project), each packed strip ends with that share of its used terminals as empty spare terminals. Device connections never change. apply=false (default) only reports the before/after counts;…

ParameterTypeDescription
project_id *string
applyboolean
stripstringStrip tag; omit for every strip

split_strips Split terminal strips by subsystem / function

Split strips so each serves one subsystem and/or one function: power (TB-PWR), PE (TB-PE), AC (TB-AC), field I/O per PLC module (TB-IO); the rest stays on plain TB strips. Everything tied together on a strip moves as one unit; a unit serving several subsystems goes to their common parent (shared distribution at the level above). Wires move with their terminals; device connections never change. apply=false (default) reports the plan; ask the user before applying. pack=true also re-packs the results (like optimize_strips).

ParameterTypeDescription
project_id *string
applyboolean
bystring
packboolean
stripstringStrip tag; omit for every strip

set_strip_parts Override strip part quantities

Override how many of a part a strip needs (accessories: end plates, end stops, jumper bars, markers, or any extra part). Ohmstead works these out from the blocks; an override replaces that count (0 removes the part). qty null = back to the worked-out count. Block counts can't be overridden; change the terminals instead.

ParameterTypeDescription
parts *array
project_id *string
strip *stringStrip tag, e.g. TB1

add_connections Add wires

Append wires (grid rows) between component terminals. Terminals must exist on the Codex part; terminal strips accept new terminal labels. Returns the issues after the change.

ParameterTypeDescription
project_id *string
wires *array

update_connection Update wire

Change one wire (grid row) by id: either end, signal, note, draw mode, gauge, harness, or length (in the project's unit; null clears). Omitted fields stay the same; note "" clears it, gauge "" goes back to the signal type's gauge, harness "" takes it out of its harness.

ParameterTypeDescription
connection_id *string
project_id *string
bundlestringDeprecated: the old name of harness.
drawstringauto (default), force a drawn wire, or force reference flags
fromstring"TAG:TERMINAL", e.g. "PSU1:+24V"
gaugestringWire gauge: AWG ("18", "14 AWG", "1/0") or mm² ("1.5 mm²"). A bare number follows the project's gauge units. Default: the signal type's gauge.
harnessstringHarness tag (H1) or name to build this loose wire into; text that names no harness makes one ("rear loom" becomes H<n> named rear loom). A harness prints and its conductors count together to derate am…
lengthWire length in the project's length unit (ft default, or m; update_project length_unit), for the voltage-drop check. null clears it. Cable conductors inherit the cable's length.
notestring
signalstringSignal type name or id. Default: the From terminal's Codex signal.
tostring"TAG:TERMINAL", e.g. "PLC_MAIN:24V"

remove_connections Remove wires

Remove wires (grid rows) from a project by id. This edits the project; it never deletes projects or Codex parts.

ParameterTypeDescription
connection_ids *array
project_id *string

add_cable Add cable

Add a multi-conductor cable between two connectors, e.g. from "B1:X1" to "IO1:X2". Pins are mapped 1:1 (same pin names, else pin order) unless conductors are given. Tag defaults to the next free W1, W2…

ParameterTypeDescription
from *string"TAG:CONNECTOR"
project_id *string
to *string"TAG:CONNECTOR"
bundlestringDeprecated: the old name of harness.
conductorsarrayExplicit pin map instead of 1:1
gaugestringDefault gauge for its conductors. Wire gauge: AWG ("18", "14 AWG", "1/0") or mm² ("1.5 mm²"). A bare number follows the project's gauge units. Default: the signal type's gauge.
harnessstringHarness tag (H1) or name to build the cable into; text that names no harness makes one. Its conductors count with the harness's other wires for derating.
lengthCable length in the project's length unit (ft default, or m; update_project length_unit). Its conductors inherit it. null = unset.
specstringPrinted on the cable, e.g. "4×0.34 PUR 5m"
tagstring

mate_connectors Mate connectors

Plug two connectors together: an in-line connector and its other half ("X10" and "X11"), or an in-line connector on a device's connector ("X10" and "PLC1:X1"). Mated pins are one conductor, 1:1 (same pin names, else pin order) unless pins are given. Each connector can be in one mate. Gender, keying and pin counts are checked by validate_project.

ParameterTypeDescription
a *string"X10" (an in-line connector) or "TAG:CONNECTOR"
b *string"X11" or "TAG:CONNECTOR"
project_id *string
pinsarrayExplicit pin map instead of 1:1

unmate_connectors Unmate connectors

Unplug a mate: name either of its connectors ("X10" or "TAG:CONNECTOR") or its id from get_project. The connectors and their wires stay.

ParameterTypeDescription
connector *string"X10", "TAG:CONNECTOR" or a mate id
project_id *string

get_pinouts Get pinouts

Pinout tables, as printed in the PDF: each mate with both halves side by side, each feed-through with its two sides, and each unmated connector that has wiring. Per cavity: signal, wire (cable or harness tag), color, gauge, contact and seal or cavity plug (in-line housings), and the far end. Name a connector ("X10", "PLC1:X1") for its table only; omit for all.

ParameterTypeDescription
project_id *string
connectorstring"X10", "TAG:CONNECTOR", or a feed-through tag; omit for every table

assign_gland Assign gland

Put a cable, or a loose wire, through a cable gland on an enclosure wall (G2): gland "GL1", or null to take it out. One cable per gland; loose wires may share a gland but not with a cable. Set the cable's outer diameter with update_cable od_mm so validate_project can check it fits.

ParameterTypeDescription
gland *string | nullGland tag (GL1), or null to clear
project_id *string
cablestringCable tag (W1) or id
wirestringA loose wire: its id from get_project, or "FROM:TERM -> TO:TERM"

update_harness Update harness

Harnesses (H1, H2…) are assemblies you make and someone builds: a tag, a name, a part number and the loose wires and cables built into them. They print (tagged trunk, drawing sheet, breakout table, BOM line) and their current-carrying conductors, cables' included, count together to derate ampacity. Create one (omit harness, give a new H tag, or from_bundle to start from a bundle's wires), add or remove wires (ids from get_project) and cables (tags), retag, name it, set its part number, draw it as a trunk or as separate wires (everywhere or in one view), or delete it (its wires and cables sta…

ParameterTypeDescription
project_id *string
add_cablesarrayCable tags or ids to put in it
add_wiresarrayWire ids to put in it
deleteboolean
from_bundlestringBundle tag (B1) or key from get_project: its wires go into the harness (a new one unless harness names one).
harnessstringHarness tag (H1) or name. Omit, or give a tag no harness has, to create one.
namestring | nullnull clears it
new_tagstring
part_numberstring | nullPart or drawing number of the built harness, for the BOM and its drawing sheet. null clears it.
remove_cablesarray
remove_wiresarray
showOne trunk or separate wires, in every view.
viewstring | nullSubsystem name or id for view_show; null = the top-level view.
view_showTrunk or separate wires in that view; null goes back to `show`.

update_bundle Update bundle

Screen overrides for a bundle: all loose wires between the same two subsystems (or a subsystem and a terminal strip), worked out automatically and drawn on screen as one line with a tag (B1, B2…). Bundles never print (the PDF draws those wires separately) and don't derate. get_project lists them. Retag, name it, draw it as a trunk or as separate wires, everywhere or in one view, change its minimum wire count, or make it one multi-core cable (promote). null clears a field back to automatic. The project-wide minimum is update_project bundle_min. To make a bundle's wires a harness that prints,…

ParameterTypeDescription
bundle *stringBundle tag (B1) or key from get_project
project_id *string
min_wiresFewest wires for this pair to draw as a bundle.
namestring | null
new_tagstring
promotebooleanThese wires really are one multi-core cable: they become conductors of a new W-tagged cable landing on the same terminals.
showTrunk or separate wires, in every view.
specstringWith promote: the cable spec, e.g. "4×0.75 PUR"
viewstring | nullWith view_show: a subsystem name or id to set it for, or null for the top level.
view_showTrunk or separate wires in that view; null goes back to `show`.

update_cable Update cable

Change a cable by tag or id: retag, spec, gauge, length, outer diameter (od_mm), either end (the pin map resets to 1:1), replace the whole pin map (conductors), reset it (reset_pin_map), set the draw mode, or build it into a harness. Omitted fields stay the same.

ParameterTypeDescription
cable *stringCable tag (W1) or id
project_id *string
bundlestringDeprecated: the old name of harness.
conductorsarrayReplaces the pin map
drawstring
fromstring"TAG:CONNECTOR"
gaugestringDefault gauge for its conductors; "" clears it. Wire gauge: AWG ("18", "14 AWG", "1/0") or mm² ("1.5 mm²"). A bare number follows the project's gauge units. Default: the signal type's gauge.
harnessstringHarness tag (H1) or name to build it into (text that names no harness makes one); "" takes it out.
lengthCable length in the project's length unit; its conductors inherit it. null clears it.
new_tagstring
od_mmOuter diameter in mm, checked against the gland it passes (assign_gland). null clears it.
reset_pin_mapboolean
specstring"" clears it
tostring"TAG:CONNECTOR"

remove_cable Remove cable

Remove a cable and its conductors from a project (the connectors stay on their parts). A terminal-end cable's conductors stay as loose wires. This edits the project; it never deletes projects or Codex parts.

ParameterTypeDescription
cable *stringCable tag (W1) or id
project_id *string

add_pid_items Add P&ID items

Add symbols to the project's P&ID (list_pid_symbols has the keys). With no tag an item gets the next free one (I-1, V-1, P-1, TK-1, E-1; actuators get none). With no position the auto-layout places it. size is for equipment only and snaps to the symbol's 10-unit steps. With component, the item links to that wiring component and the project's tag rule decides what it prints, so the result shows the printed tag.

ParameterTypeDescription
items *array
project_id *string

update_pid_items Update P&ID items

Change placed P&ID items without touching their lines: position, size, symbol, tag, location, props. Lines keep their spot through a resize or symbol change. A tag follows the project's tag rule: renaming an item linked under the "same" rule renames its wiring component too. A blank location unsets it, and so does a blank props field.

ParameterTypeDescription
items *array
project_id *string

add_process_lines Add process lines

Draw lines between P&ID items. from and to are "TAG:PORT" or "TAG" (tag or item id; list_pid_symbols has each symbol's ports, and a bare side like 90 on a side with several ports takes the one closest to the other end, so the line runs straight when a port lines up; with no positions, the one closest to the side's centre). kind defaults to process. Signal lines come from the wiring, so draw one only for something not wired yet. A line from an item to itself or an exact duplicate is skipped.

ParameterTypeDescription
lines *array
project_id *string

remove_pid_items Remove P&ID items

Remove items from the P&ID, and every line touching them. Linked wiring components stay in the schematic.

ParameterTypeDescription
items *arrayItem tags or ids
project_id *string

remove_process_lines Remove process lines

Remove lines from the P&ID by id (get_project lists them). Signal lines derived from the wiring aren't stored here; change the wiring to change them.

ParameterTypeDescription
lines *arrayLine ids
project_id *string

add_pid_sheet Add P&ID sheet

Add a named print sheet to the P&ID: a frame of 1504 × 800 units with its top-left at x,y. An item prints on the sheet holding its centre, sheets print in the order listed, and items outside every sheet tile onto automatic sheets after them. The result lists what each sheet holds.

ParameterTypeDescription
name *string
project_id *string
x *number
y *number

update_pid_sheet Update P&ID sheet

Rename a placed P&ID sheet, move its frame (x,y is the top-left), or change where it prints (position, 1 = first). sheet is its id or name. The result lists what each sheet holds.

ParameterTypeDescription
project_id *string
sheet *string
namestring
positionintegerPlace in print order among the placed sheets
xnumber
ynumber

remove_pid_sheet Remove P&ID sheet

Remove a placed P&ID sheet by id or name. Its items stay on the drawing and move to the automatic sheets.

ParameterTypeDescription
project_id *string
sheet *string

list_pid_symbols List P&ID symbols

P&ID symbols by group: key, label, base size, whether it resizes, and its ports with their x,y offset from the item's centre at that size. A resized item's ports are listed when it is added.

validate_project Validate project

Check a project for fan-outs (too many wires on a terminal), signal clashes (different signal types on one net), incomplete rows, missing signals, and terminals/parts that don't exist. Also reports supply overloads, wires outside their terminal block's clamp wire range, and sizing findings (wire too small, below the minimum size, fuse too big, missing fuse rating, voltage drop over the limit) with suggested values from the project's sizing standard. Info notes list relays, I/O, e-stops, breakers, PSUs and motors whose Codex part has no function (or incomplete terminal roles) yet, so they draw…

ParameterTypeDescription
project_id *string

explain_sizing Explain sizing

One wire's sizing breakdown — current, design current, gauge, ampacity and its derating, voltage drop, the fuse or breaker behind it, and the suggested gauge — the same numbers the wire's details show in Ohmstead. Find the wire by id, or by its ends like update_connection takes them.

ParameterTypeDescription
project_id *string
connection_idstringWire id from get_project.
fromstring"TAG:TERMINAL", e.g. "PSU1:+24V"
tostring"TAG:TERMINAL", e.g. "K1:A1"

fix_fanouts Fix fan-outs

Route every fan-out through terminal strips (one strip per electrical net, jumpered as needed), same as the app's "Fix all". via defaults to the project type (splices in a vehicle project, else strips). New strips use the project default block (update_project default_block); protective-earth fan-outs get the PE block (default_pe_block, else a generic PE block). terminal_type only applies to generic blocks. via "splice" routes device fan-outs through splices (SP1…, one per net) instead; over-full strip terminals always stay on their strip.

ParameterTypeDescription
project_id *string
terminal_typestring
viastringRoute fan-outs through terminal strips or splices; omit for the project type's default

allow_multiple_wires Allow multiple wires on a terminal

Let one device terminal take several wires in this project (e.g. a two-level terminal), silencing its fan-out. allow=false reverts.

ParameterTypeDescription
project_id *string
terminal *string"TAG:TERMINAL"
allowboolean

search_codex Search Codex

Search the parts library (built-in, community and yours) by name, part number, manufacturer, description or terminal name.

ParameterTypeDescription
categorystringOne of: device, plc, psu, battery, relay, terminal, estop, io, hmi, breaker, motor, sensor, resistor, capacitor, inductor, diode, connector, splice, gland
limitinteger
manufacturerstring
mine_onlyboolean
querystring

list_signal_types List signal types

Signal types (name, category, wire color, gauge, volts) available for terminals and wires.

save_signal_type Create or update a signal type

Create a signal type (what a wire carries and the color it draws in), or update one you own (pass signal_id). Comms types draw dashed and let a terminal take several wires without a fan-out. Free users' signal types are always public; Pro ones default to private. Built-in types are read-only.

ParameterTypeDescription
color *stringInsulation color as hex, e.g. #7C3AED
name *string
awgstring | nullDefault wire gauge, AWG: "18", "14", "1/0". null clears it.
categorystring
color_namestringReadable color name, e.g. "Violet" or "White/Blue"
dashedbooleanDraw dashed (cables / comms). Default: true for comms
mm2Default wire gauge as a cross-section in mm², e.g. 0.75. null clears it. Set either or both.
phases1 for DC and single-phase (the default), 3 for three-phase (√3 in the drop formula). null clears it (treated as 1).
publicboolean
signal_idstring
stripe_colorTracer stripe as hex, or null for none
voltsNominal voltage of this signal, e.g. 24 or 120; the voltage-drop check divides by it. null clears it (no drop check).

list_manufacturers List manufacturers

Manufacturers available for Codex parts.

save_part Create or update Codex part

Create a Codex part, or update one you own (pass part_id). A part must be complete: name, manufacturer, part number, category, description and at least one terminal (accessory parts, block.kind accessory, need none). A part can say what it does (function) and what each terminal is to it (terminal role / channel); a part with a function must have every role it needs or the save is refused. Mixed parts (a PLC CPU with onboard DI and AI) list groups, each with its own function, and put terminals in them. Terminal blocks (category terminal) carry block data and per-terminal level/side; terminals c…

add_part_terminals Add terminals to a Codex part

Add terminals to a Codex part. Terminals can carry load_a / rated_a current data (datasheet values, not guesses) and a role / channel / group; the part's other data stays as it is, and a part with a function is checked again for the roles it needs. Your own parts, and team parts in a team where you're an editor or up, are changed in place; anything else is forked into your Codex first (into the team's Codex when project_id is a team project). Pass project_id to relink that project's components to the fork.

ParameterTypeDescription
part_id *string
terminals *array
project_idstring

fork_part Fork Codex part

Copy a built-in or community part into your own Codex so you can edit it.

ParameterTypeDescription
part_id *string

import_wiring_list Import a design (wire list, BOM, or a drawing you read)

Import an existing design into a NEW Ohmstead project. Sources: rows you extracted yourself (read an EPLAN / SKYCAD / AutoCAD Electrical / SolidWorks Electrical PDF page by page: devices with tags + part numbers from the parts list, wires as TAG:TERMINAL pairs from the cross-references / wire numbers, strips with their terminal order from the terminal diagrams), and/or CSV text: wire_csv (connection / wire list export) and bom_csv (BOM / parts list). Devices are matched to the Codex by part number; unknown part numbers are PROPOSED, never created unless listed in accept_parts. BOM lines no wir…

ParameterTypeDescription
title *string
accept_partsarrayProposed part numbers to create in the user's Codex before importing (["all"] for every proposal whose manufacturer exists)
accept_subsystemsarrayProposed subsystem names to apply (["all"] for every one). Devices left out stay at project level.
applyboolean
bom_csvstringBOM / parts list CSV text (tag, part number, manufacturer, description, section)
column_mapobjectOverride column names, e.g. {"fromTag": "Start device", "partNumber": "Order no"}
devicesarray
levelstring
sourcestring
stripsarrayTerminal order per strip from terminal diagrams
teamstringTeam or class name or id to create the project in. Omit for your personal workspace.
wire_csvstringWire / connection list CSV text (EPLAN, AutoCAD Electrical, SolidWorks Electrical exports; columns found by name)
wiresarray