Edit board
update_boardEdits a saved board at expectedRevision, the revision the last save or read returned; supply at least one of name, intent or boardEdits, or restoreRevision alone to undo. Read get_board first when you do not hold the current board. Omitted fields are preserved; schematic edits require the complete replacement thin intent, while boardEdits is a physical patch. Parts and designators stay where they are unless the edit moves them. Position each added part. A removed part's position and designator go with it. Schematic changes discard the old layout and physical changes make it stale; either way this save routes and checks the board again, waits for that and returns the board as it is afterwards. Use the returned revision next. validation lists any blocking issues to fix; if it is null while layout.current is true, call check_board_layout. If the result has pollAfterSeconds, the layout is still running: follow generation with get_generation, then use its boardRevision and call check_board_layout. An edit made while a layout is running replaces that job with one for the edited board. If layoutNotStarted is returned instead, the edit is saved but its layout did not start; call generate_layout after any stated wait. A stale expectedRevision requires a fresh get_board. Undo: every edit keeps the board as it was, for its most recent changes (up to 10). To undo, call update_board with a new requestId, the current expectedRevision and restoreRevision set to the expectedRevision of the edit being undone, without name, intent or boardEdits; for several edits use the earliest one's. The board returns to that revision's schematic, placement and layout as a new revision, and that undo can be undone the same way. A name is not restored: rename again. Thin intent format: each parts entry is an array of strings [id, dbId, value], with an optional fourth designator. Choose id as the design-local part ID; copy dbId from the catalog result's id; value is the required value/display label. Omit the fourth designator when it matches id. Each connections entry is {net, class, pins}; class is power, signal, or ground. Each pins entry is [partId, padId]: use the design-local part ID and copy padId from the catalog result's pins[].number, both as strings. Optional pinCurrentRequirements uses those same partId and padId identities with requiredCurrentA in amperes and direction into, out, or bidirectional relative to the net. Omit the list to retain existing values; a supplied list replaces it, and [] clears it. The agent chooses the board size and part positions. Board coordinates are mm from the lower-left corner of the board (of its bounding box for a circle or an outline), x right and y up. Set boardEdits.settings.width and height in mm, a circle diameter, or an outline. Choose every silkscreen placement. By default, print references on new parts where space allows, prioritizing connectors, ICs, switches and serviceable parts. Honor requests for all references (except mounting holes), none, or selected parts. Preserve existing labels and visibility on unrelated edits. Keep ink ≥0.2 mm clear of parts, holes, test points and other labels and ≥0.3 mm inside the outline. Keep references and test-point labels within 3 mm of their owner and references ≥0.3 mm nearer their own part than another. Report nonblocking placementIssues. The build keeps your placement. Move labels or parts to resolve a warning only on user request. Catalog results that carry pins also carry geometry in mm at rotation 0 on the top side, x right and y up from the footprint origin: body [width, height], extent [minX, minY, maxX, maxY] of everything the footprint occupies, pins {number: [x, y]} and a connector's opening; call get_part when a chosen part has none. For bottom-face placement mirror local x first, then apply the counterclockwise rotation to the geometry. Keep every extent inside the outline with 1 mm to spare and 1 mm from other extents, more where traces must pass; a rectangle has corners rounded to a 2 mm radius unless settings.roundedCorners is false, and an extent in a corner must clear that curve too. An external receptacle sits at a board edge with its opening outward; if geometry.overhang is present, the opening side may protrude by the stated min to max distance in mm. Put connected parts next to each other and support parts at the pins they serve. settings.layers defaults to auto: the layout chooses one, two or four copper layers and saves its choice as the board's layers, which later layouts keep until an edit sets settings.layers again. For validation errors, preserve the schematic and valid catalog parts, correct the returned detailed issues, and keep the same boardRef. Use a new requestId when input changes; reuse the same requestId and arguments for an unchanged retry. Research again only when an issue needs missing part or pin information.
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": {
"expectedRevision": "<expectedRevision>",
"requestId": "<requestId>",
"boardRef": "<boardRef>"
},
"name": "update_board"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name for the board. | |
| intent | No | Complete replacement schematic, including every part and connection to retain. Omit for name-only or physical-only edits. | |
| boardRef | Yes | Private board reference. For a new board generate 32 random bytes, encode as unpadded base64url, and prepend egbr1_. Keep this same value for creation retries and every later board operation. Copy returned references unchanged. Keep it in this conversation or supported private execution state; never put it in logs or source files. A private board link may carry it in its fragment. | |
| requestId | Yes | New UUID for this operation. Reuse it with identical arguments when retrying an uncertain result; use a new UUID for a different operation. | |
| boardEdits | No | For a first save, give the board a numeric width and height in mm, a circle diameter or an outline, and locate every part in intent.parts. The layout routes the board as placed. Later edits retain omitted settings and placements. outline replaces the outline with a library choice, a complete generated profile including retained cutouts, or a DXF file: kind dxf with source holding the file's complete text. The closed outline drawn in the file becomes the board edge and closed shapes inside it become cutouts; state unit when the file declares none and layer when several layers hold outline geometry. An imported outline is converted to mm and moved so the lower-left corner of its bounding box is the board origin. In fixedPlacements.upsert locate each footprint origin with x and y or a relative edge/perimeter position. partClearances use design-local partId; keepouts, mountingHoles, silkscreenTexts, and silkscreenSvgs use item id. Keepout shape coordinates are board-plane mm; part clearance distances are in the part-local frame. Each collection uses upsert to add or merge items and remove to remove only listed IDs, not replace the collection. Remove a part's fixed placement only together with the part. Positions are in board-plane mm; rotationDeg is counterclockwise degrees. New SVG artwork cannot be added through MCP. Existing SVG artwork can be edited or removed by item id; omit assetId. | |
| routingEngine | No | Released PCB router ID. Omit to reuse the board’s selected release, or use the default release on a new or legacy board. | |
| restoreRevision | No | Undo: returns the board to how it was at this earlier revision, with the layout it had then. Give the expectedRevision of the edit to undo, or a revision from get_board's restorableRevisions. Supply it without name, intent or boardEdits. | |
| expectedRevision | Yes | Latest saved revision: the revision the last create_board, update_board or get_board returned, or boardRevision from get_generation or check_board_layout. A layout that finishes after a save has returned advances it. A mismatch returns revision_conflict; read the board again before preparing a new operation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |