fix(copper-pour): add outline parameter and fallback to board outline
Two issues fixed: 1. TypeScript schema was missing the outline parameter entirely, so MCP clients couldn't send pour boundary points. 2. Python code read "points" key but schema defined "outline" key. Now accepts "outline" (with "points" as fallback for backwards compatibility). When no outline is provided, automatically uses the board edge bounding box as the pour boundary.
This commit is contained in:
@@ -105,6 +105,12 @@ export function registerRoutingTools(
|
||||
layer: z.string().describe("PCB layer"),
|
||||
net: z.string().describe("Net name"),
|
||||
clearance: z.number().optional().describe("Clearance in mm"),
|
||||
outline: z
|
||||
.array(z.object({ x: z.number(), y: z.number() }))
|
||||
.optional()
|
||||
.describe(
|
||||
"Array of {x, y} points defining the pour boundary. If omitted, the board outline is used.",
|
||||
),
|
||||
},
|
||||
async (args: any) => {
|
||||
const result = await callKicadScript("add_copper_pour", args);
|
||||
|
||||
Reference in New Issue
Block a user