Raw schema
{
"type": "object",
"properties": {
"design_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,80}$",
"description": "The design id returned by import_kicad_project or list_designs."
},
"refs": {
"description": "The footprints that may move (default: every unlocked one).",
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 40
}
},
"fixed": {
"description": "Parts held at these origin positions; they are moved there on the board first.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"properties": {
"x_mm": {
"type": "number"
},
"y_mm": {
"type": "number"
},
"rot_deg": {
"type": "number"
}
},
"required": [
"x_mm",
"y_mm"
]
}
},
"edge": {
"description": "Connector ref to the edge it sits on, optionally @mm: where along that edge its centre goes, from the outline's top-left corner (x on top/bottom, y on left/right) — the same meaning as in auto_place and a board plan. A fixed or locked ref keeps its pin.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"pattern": "^(left|right|top|bottom)(@\\d+(\\.\\d+)?)?$"
}
},
"edge_overhang_mm": {
"description": "Per edge ref, how far its body sits past the edge: default 0.5 for a USB/barrel/jack connector (at most its 1.2 mm lip), 0 (flush) for anything else, which may not overhang.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number",
"minimum": 0,
"maximum": 5
}
},
"near": {
"description": "Keep ref at its anchor (a decoupling capacitor at its IC, a crystal at its MCU): the board plan's near constraint, as a strong pull in the anneal.",
"maxItems": 1000,
"type": "array",
"items": {
"type": "object",
"properties": {
"ref": {
"type": "string",
"maxLength": 40
},
"anchor": {
"type": "string",
"maxLength": 40
},
"maxMm": {
"type": "number",
"exclusiveMinimum": 0
}
},
"required": [
"ref",
"anchor"
]
}
},
"keepouts": {
"description": "Rectangles no part may cover, e.g. a bus corridor.",
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"x_mm": {
"type": "number",
"description": "Left edge, board coordinates (KiCad mm, y grows downward)."
},
"y_mm": {
"type": "number",
"description": "Top edge."
},
"w_mm": {
"type": "number",
"exclusiveMinimum": 0
},
"h_mm": {
"type": "number",
"exclusiveMinimum": 0
}
},
"required": [
"x_mm",
"y_mm",
"w_mm",
"h_mm"
]
}
},
"bottom_ok": {
"description": "Footprint-id substrings allowed on the bottom side (e.g. \"0402\").",
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"maxLength": 60
}
},
"bottom_any": {
"description": "Any SMD-only part may go to the back (priced by flip_cost); LEDs, switches, displays and test points stay on top unless bottom_exclude says otherwise.",
"type": "boolean"
},
"bottom_max_height_mm": {
"description": "Tallest part allowed on the back (3D-model height, default 1.0): the assembly box grows by the tallest back-side part.",
"type": "number",
"minimum": 0,
"maximum": 20
},
"bottom_exclude": {
"description": "Regex of refs or footprint ids that stay on top regardless.",
"type": "string",
"maxLength": 200
},
"flip_cost": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"split_cost": {
"description": "Price (mm of wirelength) of an SMD net with pads on both sides, i.e. a via.",
"type": "number",
"minimum": 0,
"maximum": 100
},
"overlap_weight": {
"description": "Overlap price per mm2 at the end of the anneal (default 400; 4000 halves what a dense draw leaves).",
"type": "number",
"minimum": 1,
"maximum": 100000
},
"shove": {
"description": "Legaliser: a part may take a spot held only by movable parts under this fraction of its area (default 0.3, 0 off).",
"type": "number",
"minimum": 0,
"maximum": 1
},
"t0": {
"description": "Start temperature (default 15). ~0.5 keeps the current placement and only tidies it (refine, or squeeze into a smaller outline).",
"type": "number",
"minimum": 0.01,
"maximum": 100
},
"refit_from": {
"description": "Outline the current placement was drawn in; it is scaled affinely into the new outline before annealing (with t0 ~0.5: shrink a placement that closed).",
"type": "object",
"properties": {
"x_mm": {
"type": "number"
},
"y_mm": {
"type": "number"
},
"w_mm": {
"type": "number"
},
"h_mm": {
"type": "number"
}
},
"required": [
"w_mm",
"h_mm"
]
},
"gap_mm": {
"type": "number",
"minimum": 0,
"maximum": 5
},
"grid_mm": {
"description": "Placement grid for free parts (0.254 = 10 mil, the designer habit); default off.",
"type": "number",
"minimum": 0,
"maximum": 2
},
"halo": {
"description": "Routing room per ref, mm (a number all round, or footprint-local [left, top, right, bottom]).",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 10
},
{
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
],
"additionalItems": false,
"minItems": 4,
"maxItems": 4
}
]
}
},
"connector_room_mm": {
"description": "Room kept on the board side of every edge connector (default 2.5).",
"type": "number",
"minimum": 0,
"maximum": 10
},
"connector_flank_mm": {
"description": "Room kept on the flanks of every edge connector (default 1.0).",
"type": "number",
"minimum": 0,
"maximum": 10
},
"ic_halo_mm": {
"description": "Room kept around ICs with 48+ pads (default 1.5).",
"type": "number",
"minimum": 0,
"maximum": 10
},
"hole_room_mm": {
"description": "Room kept around mounting holes on both sides for the screw head and standoff (default 1).",
"type": "number",
"minimum": 0,
"maximum": 10
},
"iterations": {
"type": "integer",
"minimum": 1000,
"maximum": 5000000
},
"seed": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"rotations": {
"maxItems": 8,
"type": "array",
"items": {
"type": "number"
}
},
"net_weight": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number",
"minimum": 0
}
},
"from_scratch": {
"type": "boolean"
},
"wait_s": {
"description": "Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job. A job is allowed the time its budget asks for (time_budget_s, total_budget_s, rounds), and survives a server restart (the op starts over from its snapshot; route_board's pipeline goes on from its last finished stage).",
"type": "integer",
"minimum": 0,
"maximum": 55
}
},
"required": [
"design_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}