Generate PCB layout
generate_layoutStarts one durable layout job for boardRef at expectedRevision and waits for it: returns generation completed with the new boardRevision, or still queued or running with pollAfterSeconds to follow with get_generation. A completed layout is not yet checked; call check_board_layout with that boardRevision. The job routes the board as it is placed; a board with a part that has no position, or without a size, is refused until update_board supplies them. create_board and update_board start their own layout job. Call generate_layout after a failed or cancelled layout, after layoutNotStarted, or for a user-requested regeneration. Set routingEngine when a user requests a specific release or to retry the release named in layout.requestedRoutingEngine. When get_board reports layout.upgradeAvailable, an EGT-2 Vela upgrade reroutes the saved placements without a board edit. If a layout of that same revision with the selected router is already running or was just saved, returns that job instead of starting another. Use the latest revision from get_generation or get_board. Read status with get_generation using the same boardRef; do not regenerate to inspect progress. Successful completion replaces the saved layout; the board is kept as it was, and update_board with restoreRevision set to this call's expectedRevision returns to it. A requestId supports IDENTICAL retries only; changed arguments need a new requestId. revision_conflict requires get_board; board_busy identifies the existing job to poll. Subject to normal compute capacity and board complexity limits, without AI credits.
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": "generate_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| 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. | |
| 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 |