{
 "date": "2026-12-03",
 "machine": "AMD Ryzen 9 7950X3D, Windows 11 Pro 10.0.26200",
 "exe_sha256": "bc5404174c2c77c4dc4895366a5e16977186ca7a052fc4d443478c658095b4ca",
 "input_sha256": "86094426be4beb065489a39e18cf08b671a50bf55fba469b70b0c238d23cabb6",
 "request": {
  "name": "Desk-organiser kit (12 parts, three layers) on 300 x 300 mm plywood",
  "parts": [
   {
    "id": "desk-kit-unit-1",
    "quantity": 1,
    "rotations": {
     "kind": "list",
     "degrees": [
      0,
      90,
      180,
      270
     ]
    }
   },
   {
    "id": "desk-kit-unit-2",
    "quantity": 1,
    "rotations": {
     "kind": "list",
     "degrees": [
      0,
      90,
      180,
      270
     ]
    }
   },
   {
    "id": "desk-kit-unit-3",
    "quantity": 1,
    "rotations": {
     "kind": "list",
     "degrees": [
      0,
      90,
      180,
      270
     ]
    }
   },
   {
    "id": "desk-kit-unit-4",
    "quantity": 1,
    "rotations": {
     "kind": "list",
     "degrees": [
      0,
      90,
      180,
      270
     ]
    }
   },
   {
    "id": "desk-kit-unit-5",
    "quantity": 1,
    "rotations": {
     "kind": "list",
     "degrees": [
      0,
      90,
      180,
      270
     ]
    }
   },
   {
    "id": "desk-kit-unit-6",
    "quantity": 1,
    "rotations": {
     "kind": "list",
     "degrees": [
      0,
      90,
      180,
      270
     ]
    }
   },
   {
    "id": "desk-kit-unit-7",
    "quantity": 1,
    "rotations": {
     "kind": "list",
     "degrees": [
      0,
      90,
      180,
      270
     ]
    }
   },
   {
    "id": "desk-kit-unit-8",
    "quantity": 1,
    "rotations": {
     "kind": "list",
     "degrees": [
      0,
      90,
      180,
      270
     ]
    }
   },
   {
    "id": "desk-kit-unit-9",
    "quantity": 1,
    "rotations": {
     "kind": "list",
     "degrees": [
      0,
      90,
      180,
      270
     ]
    }
   },
   {
    "id": "desk-kit-unit-10",
    "quantity": 1,
    "rotations": {
     "kind": "list",
     "degrees": [
      0,
      90,
      180,
      270
     ]
    }
   },
   {
    "id": "desk-kit-unit-11",
    "quantity": 1,
    "rotations": {
     "kind": "list",
     "degrees": [
      0,
      90,
      180,
      270
     ]
    }
   },
   {
    "id": "desk-kit-unit-12",
    "quantity": 1,
    "rotations": {
     "kind": "list",
     "degrees": [
      0,
      90,
      180,
      270
     ]
    }
   }
  ],
  "sheets": [
   {
    "width_mm": 300,
    "height_mm": 300,
    "margins_mm": {
     "left": 5,
     "right": 5,
     "bottom": 5,
     "top": 5
    }
   }
  ],
  "spacing_mm": 2.0,
  "edge_spacing_mm": 1.0
 },
 "steps": {
  "import": {
   "tool": "import_parts",
   "arguments": {
    "paths": [
     "desk-kit.lbrn2"
    ],
    "library_path": "lib.json"
   },
   "isError": false,
   "body": {
    "imports": [],
    "library_path": "lib.json",
    "lightburn": {
     "file": "desk-kit.lbrn2",
     "fixed_top_level": 0,
     "layer_count": 3,
     "layers": [
      {
       "cuts": true,
       "hidden": false,
       "image": false,
       "index": 0,
       "kerf_mm": 0.0,
       "mode": "Cut",
       "name": "CUT",
       "output": true
      },
      {
       "cuts": false,
       "hidden": false,
       "image": false,
       "index": 1,
       "kerf_mm": 0.0,
       "mode": "Scan",
       "name": "ENGRAVE",
       "output": true
      },
      {
       "cuts": false,
       "hidden": false,
       "image": false,
       "index": 2,
       "kerf_mm": 0.0,
       "mode": "Scan",
       "name": "PART NUMBERS",
       "output": true
      }
     ],
     "layers_truncated": false,
     "mirror_x": false,
     "mirror_y": false,
     "unit_count": 12
    },
    "part_count": 12,
    "parts": [
     {
      "area_mm2": 19402.245515716328,
      "bounds_mm": [
       10.0,
       299.89375,
       190.0,
       409.89375
      ],
      "holes": 6,
      "id": "desk-kit-unit-1",
      "source": "desk-kit.lbrn2#unit-1"
     },
     {
      "area_mm2": 9120.0,
      "bounds_mm": [
       210.0,
       356.89375,
       390.0,
       409.89375
      ],
      "holes": 0,
      "id": "desk-kit-unit-2",
      "source": "desk-kit.lbrn2#unit-2"
     },
     {
      "area_mm2": 15867.790358957032,
      "bounds_mm": [
       400.0,
       316.89375,
       580.0,
       409.89375
      ],
      "holes": 1,
      "id": "desk-kit-unit-3",
      "source": "desk-kit.lbrn2#unit-3"
     },
     {
      "area_mm2": 7760.0,
      "bounds_mm": [
       10.0,
       186.89375,
       120.0,
       279.89375
      ],
      "holes": 0,
      "id": "desk-kit-unit-4",
      "source": "desk-kit.lbrn2#unit-4"
     },
     {
      "area_mm2": 7760.0,
      "bounds_mm": [
       130.0,
       186.89375,
       240.0,
       279.89375
      ],
      "holes": 0,
      "id": "desk-kit-unit-5",
      "source": "desk-kit.lbrn2#unit-5"
     },
     {
      "area_mm2": 4429.6,
      "bounds_mm": [
       250.0,
       234.89375,
       350.0,
       279.89375
      ],
      "holes": 0,
      "id": "desk-kit-unit-6",
      "source": "desk-kit.lbrn2#unit-6"
     },
     {
      "area_mm2": 4429.6,
      "bounds_mm": [
       360.0,
       234.89375,
       460.0,
       279.89375
      ],
      "holes": 0,
      "id": "desk-kit-unit-7",
      "source": "desk-kit.lbrn2#unit-7"
     },
     {
      "area_mm2": 4060.0,
      "bounds_mm": [
       10.0,
       76.89375,
       60.0,
       159.89375
      ],
      "holes": 0,
      "id": "desk-kit-unit-8",
      "source": "desk-kit.lbrn2#unit-8"
     },
     {
      "area_mm2": 4060.0,
      "bounds_mm": [
       70.0,
       76.89375,
       120.0,
       159.89375
      ],
      "holes": 0,
      "id": "desk-kit-unit-9",
      "source": "desk-kit.lbrn2#unit-9"
     },
     {
      "area_mm2": 4060.0,
      "bounds_mm": [
       130.0,
       76.89375,
       180.0,
       159.89375
      ],
      "holes": 0,
      "id": "desk-kit-unit-10",
      "source": "desk-kit.lbrn2#unit-10"
     },
     {
      "area_mm2": 4060.0,
      "bounds_mm": [
       190.0,
       76.89375,
       240.0,
       159.89375
      ],
      "holes": 0,
      "id": "desk-kit-unit-11",
      "source": "desk-kit.lbrn2#unit-11"
     },
     {
      "area_mm2": 2880.0,
      "bounds_mm": [
       260.0,
       103.89375,
       316.0,
       159.89375
      ],
      "holes": 4,
      "id": "desk-kit-unit-12",
      "source": "desk-kit.lbrn2#unit-12"
     }
    ],
    "parts_truncated": false,
    "sheet_outline_count": 0,
    "sheet_outlines": [],
    "sheet_outlines_truncated": false,
    "warnings": []
   },
   "elapsed_s": 0.003,
   "reply_bytes": 4947,
   "notifications": 0
  },
  "nest_a": {
   "tool": "nest",
   "arguments": {
    "library_path": "lib.json",
    "request": {
     "name": "Desk-organiser kit (12 parts, three layers) on 300 x 300 mm plywood",
     "parts": [
      {
       "id": "desk-kit-unit-1",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-2",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-3",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-4",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-5",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-6",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-7",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-8",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-9",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-10",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-11",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-12",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      }
     ],
     "sheets": [
      {
       "width_mm": 300,
       "height_mm": 300,
       "margins_mm": {
        "left": 5,
        "right": 5,
        "bottom": 5,
        "top": 5
       }
      }
     ],
     "spacing_mm": 2.0,
     "edge_spacing_mm": 1.0
    },
    "time_budget_s": 10,
    "seed": 0,
    "out_dir": "out-a"
   },
   "isError": false,
   "body": {
    "algorithm": "nestbolt-sheet-separator-v1",
    "elapsed_s": 3.2158187,
    "files": [
     "out-a/desk-kit-sheet-1.lbrn2",
     "out-a/desk-kit-sheet-2.lbrn2"
    ],
    "layout_path": "out-a/layout.json",
    "out_dir": "out-a",
    "parts_in_holes": 0,
    "repeatable": true,
    "seed": 0,
    "time_budget_s": 10.0,
    "unsupported": null,
    "validation": {
     "metrics": {
      "full_stock_area": 180000.0,
      "last_sheet_id": "sheet-1",
      "last_sheet_used_height": 95.034736,
      "material_area": 118510.42079999999,
      "normalized_material": 1.3167824533333332,
      "placed_area": 87889.23587467337,
      "placed_parts": 12,
      "placed_priority": 12.0,
      "requested_parts": 12,
      "sheets_used": 2,
      "trailing_offcut_area": 61489.5792,
      "utilization": 0.7416160982416609
     },
     "valid": true,
     "violation_count": 0,
     "violations": []
    },
    "version": 1,
    "work_version": "nestbolt-work-v5"
   },
   "elapsed_s": 3.234,
   "reply_bytes": 1659,
   "notifications": 3
  },
  "nest_b": {
   "tool": "nest",
   "arguments": {
    "library_path": "lib.json",
    "request": {
     "name": "Desk-organiser kit (12 parts, three layers) on 300 x 300 mm plywood",
     "parts": [
      {
       "id": "desk-kit-unit-1",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-2",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-3",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-4",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-5",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-6",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-7",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-8",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-9",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-10",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-11",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-12",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      }
     ],
     "sheets": [
      {
       "width_mm": 300,
       "height_mm": 300,
       "margins_mm": {
        "left": 5,
        "right": 5,
        "bottom": 5,
        "top": 5
       }
      }
     ],
     "spacing_mm": 2.0,
     "edge_spacing_mm": 1.0
    },
    "time_budget_s": 10,
    "seed": 0,
    "out_dir": "out-b"
   },
   "isError": false,
   "body": {
    "algorithm": "nestbolt-sheet-separator-v1",
    "elapsed_s": 4.1565403,
    "files": [
     "out-b/desk-kit-sheet-1.lbrn2",
     "out-b/desk-kit-sheet-2.lbrn2"
    ],
    "layout_path": "out-b/layout.json",
    "out_dir": "out-b",
    "parts_in_holes": 0,
    "repeatable": true,
    "seed": 0,
    "time_budget_s": 10.0,
    "unsupported": null,
    "validation": {
     "metrics": {
      "full_stock_area": 180000.0,
      "last_sheet_id": "sheet-1",
      "last_sheet_used_height": 95.034736,
      "material_area": 118510.42079999999,
      "normalized_material": 1.3167824533333332,
      "placed_area": 87889.23587467337,
      "placed_parts": 12,
      "placed_priority": 12.0,
      "requested_parts": 12,
      "sheets_used": 2,
      "trailing_offcut_area": 61489.5792,
      "utilization": 0.7416160982416609
     },
     "valid": true,
     "violation_count": 0,
     "violations": []
    },
    "version": 1,
    "work_version": "nestbolt-work-v5"
   },
   "elapsed_s": 4.173,
   "reply_bytes": 1659,
   "notifications": 3
  },
  "validate": {
   "tool": "validate_layout",
   "arguments": {
    "library_path": "lib.json",
    "request": {
     "name": "Desk-organiser kit (12 parts, three layers) on 300 x 300 mm plywood",
     "parts": [
      {
       "id": "desk-kit-unit-1",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-2",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-3",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-4",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-5",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-6",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-7",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-8",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-9",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-10",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-11",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-12",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      }
     ],
     "sheets": [
      {
       "width_mm": 300,
       "height_mm": 300,
       "margins_mm": {
        "left": 5,
        "right": 5,
        "bottom": 5,
        "top": 5
       }
      }
     ],
     "spacing_mm": 2.0,
     "edge_spacing_mm": 1.0
    },
    "layout_path": "out-a/layout.json"
   },
   "isError": false,
   "body": {
    "common_line": null,
    "lead_in": null,
    "metrics": {
     "full_stock_area": 180000.0,
     "last_sheet_id": "sheet-1",
     "last_sheet_used_height": 95.034736,
     "material_area": 118510.42079999999,
     "normalized_material": 1.3167824533333332,
     "placed_area": 87889.23587467337,
     "placed_parts": 12,
     "placed_priority": 12.0,
     "requested_parts": 12,
     "sheets_used": 2,
     "trailing_offcut_area": 61489.5792,
     "utilization": 0.7416160982416609
    },
    "valid": true,
    "violation_count": 0,
    "violations": []
   },
   "elapsed_s": 0.004,
   "reply_bytes": 1023,
   "notifications": 0
  },
  "export": {
   "tool": "export_layout",
   "arguments": {
    "library_path": "lib.json",
    "request": {
     "name": "Desk-organiser kit (12 parts, three layers) on 300 x 300 mm plywood",
     "parts": [
      {
       "id": "desk-kit-unit-1",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-2",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-3",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-4",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-5",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-6",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-7",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-8",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-9",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-10",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-11",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-12",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      }
     ],
     "sheets": [
      {
       "width_mm": 300,
       "height_mm": 300,
       "margins_mm": {
        "left": 5,
        "right": 5,
        "bottom": 5,
        "top": 5
       }
      }
     ],
     "spacing_mm": 2.0,
     "edge_spacing_mm": 1.0
    },
    "layout_path": "out-a/layout.json",
    "out_dir": "out-c"
   },
   "isError": false,
   "body": {
    "common_line": null,
    "files": [
     "out-c/desk-kit-sheet-1.lbrn2",
     "out-c/desk-kit-sheet-2.lbrn2"
    ],
    "lead_in": null
   },
   "elapsed_s": 0.02,
   "reply_bytes": 335,
   "notifications": 0
  },
  "export_svg_refused": {
   "tool": "export_layout",
   "arguments": {
    "library_path": "lib.json",
    "request": {
     "name": "Desk-organiser kit (12 parts, three layers) on 300 x 300 mm plywood",
     "parts": [
      {
       "id": "desk-kit-unit-1",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-2",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-3",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-4",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-5",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-6",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-7",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-8",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-9",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-10",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-11",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      },
      {
       "id": "desk-kit-unit-12",
       "quantity": 1,
       "rotations": {
        "kind": "list",
        "degrees": [
         0,
         90,
         180,
         270
        ]
       }
      }
     ],
     "sheets": [
      {
       "width_mm": 300,
       "height_mm": 300,
       "margins_mm": {
        "left": 5,
        "right": 5,
        "bottom": 5,
        "top": 5
       }
      }
     ],
     "spacing_mm": 2.0,
     "edge_spacing_mm": 1.0
    },
    "layout_path": "out-a/layout.json",
    "out_dir": "out-d",
    "format": "svg"
   },
   "isError": true,
   "body": {
    "code": -32602,
    "message": "export this LightBurn project as lbrn2 to retain its text, images and layer settings"
   },
   "elapsed_s": 0.01,
   "reply_bytes": 146,
   "notifications": 0
  }
 },
 "server": {
  "name": "nestbolt",
  "version": "0.2.0"
 },
 "protocolVersion": "2025-06-18",
 "instructions": "Nestbolt nests parts on fixed sheets for laser, CNC and fabric cutting. Local, no account, no API key. 1) import_parts with SVG/DXF or LightBurn paths inside the workspace (<workspace>). 2) nest with the library_path, a request (parts by id with quantities, sheets in mm, spacing_mm) and time_budget_s. 3) Use the returned SVG/DXF or preserving LBRN2 files, quote_layout for cut lengths/pierces/costing, or export_offcut to save leftover remnants on the SHEET layer for future jobs. validate_layout and export_layout work on layout files; estimate_sheets gives a lower bound only. Lengths are millimetres. Results always pass an independent geometry check.",
 "tools": [
  "estimate_sheets",
  "export_layout",
  "export_offcut",
  "import_parts",
  "nest",
  "quote_layout",
  "validate_layout"
 ],
 "tools_list_bytes": 39477,
 "tools_list_reply": {
  "tools": [
   {
    "name": "estimate_sheets",
    "description": "A fast lower bound on sheets for planning and quotes: net part area divided by usable sheet area. Necessary, not sufficient: real layouts can need more sheets. Also flags parts that fit no sheet in any allowed rotation.",
    "inputSchema": {
     "$defs": {
      "Margins": {
       "additionalProperties": false,
       "properties": {
        "bottom": {
         "format": "double",
         "type": "number"
        },
        "left": {
         "format": "double",
         "type": "number"
        },
        "right": {
         "format": "double",
         "type": "number"
        },
        "top": {
         "format": "double",
         "type": "number"
        }
       },
       "required": [
        "left",
        "right",
        "bottom",
        "top"
       ],
       "type": "object"
      },
      "Mode": {
       "enum": [
        "all",
        "fill_area",
        "fill_priority"
       ],
       "type": "string"
      },
      "Options": {
       "additionalProperties": false,
       "properties": {
        "allow_part_in_hole": {
         "description": "Permit placement inside holes at the requested clearance. Only outer edges can share cuts.",
         "type": "boolean"
        },
        "kerf_mm": {
         "format": "double",
         "type": "number"
        },
        "search_bonus": {
         "default": false,
         "description": "Spend the last tenth of the search aligning shared cuts. Off by default.",
         "type": "boolean"
        }
       },
       "required": [
        "kerf_mm"
       ],
       "type": "object"
      },
      "Options2": {
       "additionalProperties": false,
       "properties": {
        "hole_angle_degrees": {
         "default": 90.0,
         "format": "double",
         "type": "number"
        },
        "kerf_mm": {
         "format": "double",
         "type": "number"
        },
        "length_mm": {
         "default": 3.0,
         "format": "double",
         "type": "number"
        },
        "outer_angle_degrees": {
         "default": 45.0,
         "format": "double",
         "type": "number"
        },
        "style": {
         "$ref": "#/$defs/Style",
         "default": "line"
        }
       },
       "required": [
        "kerf_mm"
       ],
       "type": "object"
      },
      "Polygon": {
       "additionalProperties": false,
       "properties": {
        "holes": {
         "default": [],
         "items": {
          "items": {
           "items": {
            "format": "double",
            "type": "number"
           },
           "maxItems": 2,
           "minItems": 2,
           "type": "array"
          },
          "type": "array"
         },
         "type": "array"
        },
        "outer": {
         "items": {
          "items": {
           "format": "double",
           "type": "number"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": "array"
         },
         "type": "array"
        }
       },
       "required": [
        "outer"
       ],
       "type": "object"
      },
      "Request": {
       "additionalProperties": false,
       "description": "What to nest. Lengths are millimetres.",
       "properties": {
        "common_line": {
         "anyOf": [
          {
           "$ref": "#/$defs/Options"
          },
          {
           "type": "null"
          }
         ],
         "description": "Optional compensated common-line cutting. Its kerf replaces part spacing."
        },
        "edge_spacing_mm": {
         "default": 0.0,
         "description": "Minimum gap between parts and the sheet edge or a defect.",
         "format": "double",
         "type": "number"
        },
        "lead_in": {
         "anyOf": [
          {
           "$ref": "#/$defs/Options2"
          },
          {
           "type": "null"
          }
         ],
         "description": "Reserve cutting leads, choose contour starts and export LEADIN for review."
        },
        "mode": {
         "$ref": "#/$defs/Mode",
         "default": "all"
        },
        "name": {
         "type": [
          "string",
          "null"
         ]
        },
        "parts": {
         "default": [],
         "description": "Parts to place; all library parts with default settings when empty.",
         "items": {
          "$ref": "#/$defs/RequestPart"
         },
         "type": "array"
        },
        "quick_start": {
         "description": "Start with conservative bounding rectangles, then improve the layout.\nOff by default; may trade material quality for a quicker first layout.",
         "type": "boolean"
        },
        "sheets": {
         "items": {
          "$ref": "#/$defs/RequestSheet"
         },
         "type": "array"
        },
        "spacing_mm": {
         "default": 0.0,
         "description": "Minimum gap between parts (kerf plus margin).",
         "format": "double",
         "type": "number"
        }
       },
       "required": [
        "sheets"
       ],
       "type": "object"
      },
      "RequestPart": {
       "additionalProperties": false,
       "properties": {
        "allow_mirror": {
         "default": false,
         "type": "boolean"
        },
        "id": {
         "description": "A library part id.",
         "type": "string"
        },
        "priority": {
         "default": 1.0,
         "format": "double",
         "type": "number"
        },
        "quantity": {
         "default": 1,
         "format": "uint32",
         "minimum": 0,
         "type": "integer"
        },
        "rotations": {
         "$ref": "#/$defs/Rotations",
         "default": {
          "degrees": [
           0.0,
           90.0,
           180.0,
           270.0
          ],
          "kind": "list"
         }
        }
       },
       "required": [
        "id"
       ],
       "type": "object"
      },
      "RequestSheet": {
       "additionalProperties": false,
       "properties": {
        "count": {
         "description": "Available sheets of this size; absent means unlimited.",
         "format": "uint32",
         "minimum": 0,
         "type": [
          "integer",
          "null"
         ]
        },
        "defects_mm": {
         "default": [],
         "description": "Areas that must stay clear (knots, damage, clamps), in sheet coordinates.",
         "items": {
          "$ref": "#/$defs/Polygon"
         },
         "type": "array"
        },
        "from_import": {
         "default": null,
         "description": "An imported stock-outline id from Library.sheet_outlines. Omit dimensions\nto use its measured size, or supply those same dimensions explicitly.",
         "type": [
          "string",
          "null"
         ]
        },
        "height_mm": {
         "default": 0.0,
         "format": "double",
         "type": "number"
        },
        "id": {
         "type": [
          "string",
          "null"
         ]
        },
        "margins_mm": {
         "$ref": "#/$defs/Margins",
         "default": {
          "bottom": 0.0,
          "left": 0.0,
          "right": 0.0,
          "top": 0.0
         }
        },
        "outline_mm": {
         "default": [],
         "description": "A remnant's usable outline inside its width × height; empty means the\nwhole rectangle.",
         "items": {
          "$ref": "#/$defs/Polygon"
         },
         "type": "array"
        },
        "outline_tolerance_mm": {
         "default": 0.0,
         "description": "Curve-to-polygon error of an imported stock outline. Edge clearance is\nincreased by this error as well as the part-library curve tolerance.",
         "format": "double",
         "type": "number"
        },
        "width_mm": {
         "default": 0.0,
         "format": "double",
         "type": "number"
        }
       },
       "type": "object"
      },
      "Rotations": {
       "oneOf": [
        {
         "additionalProperties": false,
         "properties": {
          "kind": {
           "const": "free",
           "type": "string"
          }
         },
         "required": [
          "kind"
         ],
         "type": "object"
        },
        {
         "additionalProperties": false,
         "properties": {
          "degrees": {
           "format": "double",
           "type": "number"
          },
          "kind": {
           "const": "step",
           "type": "string"
          }
         },
         "required": [
          "kind",
          "degrees"
         ],
         "type": "object"
        },
        {
         "additionalProperties": false,
         "properties": {
          "degrees": {
           "items": {
            "format": "double",
            "type": "number"
           },
           "type": "array"
          },
          "kind": {
           "const": "list",
           "type": "string"
          }
         },
         "required": [
          "kind",
          "degrees"
         ],
         "type": "object"
        }
       ]
      },
      "Style": {
       "enum": [
        "line",
        "arc"
       ],
       "type": "string"
      }
     },
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {
      "library_path": {
       "type": "string"
      },
      "request": {
       "$ref": "#/$defs/Request"
      }
     },
     "required": [
      "library_path",
      "request"
     ],
     "type": "object"
    }
   },
   {
    "name": "export_layout",
    "description": "Write per-sheet SVG/DXF or preserving LBRN2 for a valid layout, transforming the original curves (arcs and splines stay curves). Refuses invalid layouts.",
    "inputSchema": {
     "$defs": {
      "Margins": {
       "additionalProperties": false,
       "properties": {
        "bottom": {
         "format": "double",
         "type": "number"
        },
        "left": {
         "format": "double",
         "type": "number"
        },
        "right": {
         "format": "double",
         "type": "number"
        },
        "top": {
         "format": "double",
         "type": "number"
        }
       },
       "required": [
        "left",
        "right",
        "bottom",
        "top"
       ],
       "type": "object"
      },
      "Mode": {
       "enum": [
        "all",
        "fill_area",
        "fill_priority"
       ],
       "type": "string"
      },
      "Options": {
       "additionalProperties": false,
       "properties": {
        "allow_part_in_hole": {
         "description": "Permit placement inside holes at the requested clearance. Only outer edges can share cuts.",
         "type": "boolean"
        },
        "kerf_mm": {
         "format": "double",
         "type": "number"
        },
        "search_bonus": {
         "default": false,
         "description": "Spend the last tenth of the search aligning shared cuts. Off by default.",
         "type": "boolean"
        }
       },
       "required": [
        "kerf_mm"
       ],
       "type": "object"
      },
      "Options2": {
       "additionalProperties": false,
       "properties": {
        "hole_angle_degrees": {
         "default": 90.0,
         "format": "double",
         "type": "number"
        },
        "kerf_mm": {
         "format": "double",
         "type": "number"
        },
        "length_mm": {
         "default": 3.0,
         "format": "double",
         "type": "number"
        },
        "outer_angle_degrees": {
         "default": 45.0,
         "format": "double",
         "type": "number"
        },
        "style": {
         "$ref": "#/$defs/Style",
         "default": "line"
        }
       },
       "required": [
        "kerf_mm"
       ],
       "type": "object"
      },
      "Polygon": {
       "additionalProperties": false,
       "properties": {
        "holes": {
         "default": [],
         "items": {
          "items": {
           "items": {
            "format": "double",
            "type": "number"
           },
           "maxItems": 2,
           "minItems": 2,
           "type": "array"
          },
          "type": "array"
         },
         "type": "array"
        },
        "outer": {
         "items": {
          "items": {
           "format": "double",
           "type": "number"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": "array"
         },
         "type": "array"
        }
       },
       "required": [
        "outer"
       ],
       "type": "object"
      },
      "Request": {
       "additionalProperties": false,
       "description": "What to nest. Lengths are millimetres.",
       "properties": {
        "common_line": {
         "anyOf": [
          {
           "$ref": "#/$defs/Options"
          },
          {
           "type": "null"
          }
         ],
         "description": "Optional compensated common-line cutting. Its kerf replaces part spacing."
        },
        "edge_spacing_mm": {
         "default": 0.0,
         "description": "Minimum gap between parts and the sheet edge or a defect.",
         "format": "double",
         "type": "number"
        },
        "lead_in": {
         "anyOf": [
          {
           "$ref": "#/$defs/Options2"
          },
          {
           "type": "null"
          }
         ],
         "description": "Reserve cutting leads, choose contour starts and export LEADIN for review."
        },
        "mode": {
         "$ref": "#/$defs/Mode",
         "default": "all"
        },
        "name": {
         "type": [
          "string",
          "null"
         ]
        },
        "parts": {
         "default": [],
         "description": "Parts to place; all library parts with default settings when empty.",
         "items": {
          "$ref": "#/$defs/RequestPart"
         },
         "type": "array"
        },
        "quick_start": {
         "description": "Start with conservative bounding rectangles, then improve the layout.\nOff by default; may trade material quality for a quicker first layout.",
         "type": "boolean"
        },
        "sheets": {
         "items": {
          "$ref": "#/$defs/RequestSheet"
         },
         "type": "array"
        },
        "spacing_mm": {
         "default": 0.0,
         "description": "Minimum gap between parts (kerf plus margin).",
         "format": "double",
         "type": "number"
        }
       },
       "required": [
        "sheets"
       ],
       "type": "object"
      },
      "RequestPart": {
       "additionalProperties": false,
       "properties": {
        "allow_mirror": {
         "default": false,
         "type": "boolean"
        },
        "id": {
         "description": "A library part id.",
         "type": "string"
        },
        "priority": {
         "default": 1.0,
         "format": "double",
         "type": "number"
        },
        "quantity": {
         "default": 1,
         "format": "uint32",
         "minimum": 0,
         "type": "integer"
        },
        "rotations": {
         "$ref": "#/$defs/Rotations",
         "default": {
          "degrees": [
           0.0,
           90.0,
           180.0,
           270.0
          ],
          "kind": "list"
         }
        }
       },
       "required": [
        "id"
       ],
       "type": "object"
      },
      "RequestSheet": {
       "additionalProperties": false,
       "properties": {
        "count": {
         "description": "Available sheets of this size; absent means unlimited.",
         "format": "uint32",
         "minimum": 0,
         "type": [
          "integer",
          "null"
         ]
        },
        "defects_mm": {
         "default": [],
         "description": "Areas that must stay clear (knots, damage, clamps), in sheet coordinates.",
         "items": {
          "$ref": "#/$defs/Polygon"
         },
         "type": "array"
        },
        "from_import": {
         "default": null,
         "description": "An imported stock-outline id from Library.sheet_outlines. Omit dimensions\nto use its measured size, or supply those same dimensions explicitly.",
         "type": [
          "string",
          "null"
         ]
        },
        "height_mm": {
         "default": 0.0,
         "format": "double",
         "type": "number"
        },
        "id": {
         "type": [
          "string",
          "null"
         ]
        },
        "margins_mm": {
         "$ref": "#/$defs/Margins",
         "default": {
          "bottom": 0.0,
          "left": 0.0,
          "right": 0.0,
          "top": 0.0
         }
        },
        "outline_mm": {
         "default": [],
         "description": "A remnant's usable outline inside its width × height; empty means the\nwhole rectangle.",
         "items": {
          "$ref": "#/$defs/Polygon"
         },
         "type": "array"
        },
        "outline_tolerance_mm": {
         "default": 0.0,
         "description": "Curve-to-polygon error of an imported stock outline. Edge clearance is\nincreased by this error as well as the part-library curve tolerance.",
         "format": "double",
         "type": "number"
        },
        "width_mm": {
         "default": 0.0,
         "format": "double",
         "type": "number"
        }
       },
       "type": "object"
      },
      "Rotations": {
       "oneOf": [
        {
         "additionalProperties": false,
         "properties": {
          "kind": {
           "const": "free",
           "type": "string"
          }
         },
         "required": [
          "kind"
         ],
         "type": "object"
        },
        {
         "additionalProperties": false,
         "properties": {
          "degrees": {
           "format": "double",
           "type": "number"
          },
          "kind": {
           "const": "step",
           "type": "string"
          }
         },
         "required": [
          "kind",
          "degrees"
         ],
         "type": "object"
        },
        {
         "additionalProperties": false,
         "properties": {
          "degrees": {
           "items": {
            "format": "double",
            "type": "number"
           },
           "type": "array"
          },
          "kind": {
           "const": "list",
           "type": "string"
          }
         },
         "required": [
          "kind",
          "degrees"
         ],
         "type": "object"
        }
       ]
      },
      "Style": {
       "enum": [
        "line",
        "arc"
       ],
       "type": "string"
      }
     },
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {
      "format": {
       "description": "Optional svg, dxf or lbrn2; omit to use the source format default.",
       "type": [
        "string",
        "null"
       ]
      },
      "layout_path": {
       "type": "string"
      },
      "library_path": {
       "type": "string"
      },
      "out_dir": {
       "description": "New output directory; preserving .lbrn2 for LightBurn, SVG/DXF otherwise.",
       "type": "string"
      },
      "request": {
       "$ref": "#/$defs/Request"
      },
      "sheet_outline": {
       "description": "Draw sheet boundaries (default true for LightBurn, false for SVG/DXF).",
       "type": [
        "boolean",
        "null"
       ]
      }
     },
     "required": [
      "library_path",
      "request",
      "layout_path",
      "out_dir"
     ],
     "type": "object"
    }
   },
   {
    "name": "export_offcut",
    "description": "Extract reusable rectangular (guillotine) or exact (true-shape) leftover remnants from a valid layout and write SHEET-layer SVG/DXF files ready to re-import as stock outlines in future jobs.",
    "inputSchema": {
     "$defs": {
      "Margins": {
       "additionalProperties": false,
       "properties": {
        "bottom": {
         "format": "double",
         "type": "number"
        },
        "left": {
         "format": "double",
         "type": "number"
        },
        "right": {
         "format": "double",
         "type": "number"
        },
        "top": {
         "format": "double",
         "type": "number"
        }
       },
       "required": [
        "left",
        "right",
        "bottom",
        "top"
       ],
       "type": "object"
      },
      "Mode": {
       "enum": [
        "all",
        "fill_area",
        "fill_priority"
       ],
       "type": "string"
      },
      "OffcutMode": {
       "oneOf": [
        {
         "const": "rectangular",
         "description": "Clean straight-cut slab above the highest placed part (+ edge clearance + top margin).",
         "type": "string"
        },
        {
         "const": "exact",
         "description": "True-shape reusable remnant: stock outline (minus defects) minus every\nplaced part inflated by part clearance, filtered by minimum size.",
         "type": "string"
        }
       ]
      },
      "Options": {
       "additionalProperties": false,
       "properties": {
        "allow_part_in_hole": {
         "description": "Permit placement inside holes at the requested clearance. Only outer edges can share cuts.",
         "type": "boolean"
        },
        "kerf_mm": {
         "format": "double",
         "type": "number"
        },
        "search_bonus": {
         "default": false,
         "description": "Spend the last tenth of the search aligning shared cuts. Off by default.",
         "type": "boolean"
        }
       },
       "required": [
        "kerf_mm"
       ],
       "type": "object"
      },
      "Options2": {
       "additionalProperties": false,
       "properties": {
        "hole_angle_degrees": {
         "default": 90.0,
         "format": "double",
         "type": "number"
        },
        "kerf_mm": {
         "format": "double",
         "type": "number"
        },
        "length_mm": {
         "default": 3.0,
         "format": "double",
         "type": "number"
        },
        "outer_angle_degrees": {
         "default": 45.0,
         "format": "double",
         "type": "number"
        },
        "style": {
         "$ref": "#/$defs/Style",
         "default": "line"
        }
       },
       "required": [
        "kerf_mm"
       ],
       "type": "object"
      },
      "Polygon": {
       "additionalProperties": false,
       "properties": {
        "holes": {
         "default": [],
         "items": {
          "items": {
           "items": {
            "format": "double",
            "type": "number"
           },
           "maxItems": 2,
           "minItems": 2,
           "type": "array"
          },
          "type": "array"
         },
         "type": "array"
        },
        "outer": {
         "items": {
          "items": {
           "format": "double",
           "type": "number"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": "array"
         },
         "type": "array"
        }
       },
       "required": [
        "outer"
       ],
       "type": "object"
      },
      "Request": {
       "additionalProperties": false,
       "description": "What to nest. Lengths are millimetres.",
       "properties": {
        "common_line": {
         "anyOf": [
          {
           "$ref": "#/$defs/Options"
          },
          {
           "type": "null"
          }
         ],
         "description": "Optional compensated common-line cutting. Its kerf replaces part spacing."
        },
        "edge_spacing_mm": {
         "default": 0.0,
         "description": "Minimum gap between parts and the sheet edge or a defect.",
         "format": "double",
         "type": "number"
        },
        "lead_in": {
         "anyOf": [
          {
           "$ref": "#/$defs/Options2"
          },
          {
           "type": "null"
          }
         ],
         "description": "Reserve cutting leads, choose contour starts and export LEADIN for review."
        },
        "mode": {
         "$ref": "#/$defs/Mode",
         "default": "all"
        },
        "name": {
         "type": [
          "string",
          "null"
         ]
        },
        "parts": {
         "default": [],
         "description": "Parts to place; all library parts with default settings when empty.",
         "items": {
          "$ref": "#/$defs/RequestPart"
         },
         "type": "array"
        },
        "quick_start": {
         "description": "Start with conservative bounding rectangles, then improve the layout.\nOff by default; may trade material quality for a quicker first layout.",
         "type": "boolean"
        },
        "sheets": {
         "items": {
          "$ref": "#/$defs/RequestSheet"
         },
         "type": "array"
        },
        "spacing_mm": {
         "default": 0.0,
         "description": "Minimum gap between parts (kerf plus margin).",
         "format": "double",
         "type": "number"
        }
       },
       "required": [
        "sheets"
       ],
       "type": "object"
      },
      "RequestPart": {
       "additionalProperties": false,
       "properties": {
        "allow_mirror": {
         "default": false,
         "type": "boolean"
        },
        "id": {
         "description": "A library part id.",
         "type": "string"
        },
        "priority": {
         "default": 1.0,
         "format": "double",
         "type": "number"
        },
        "quantity": {
         "default": 1,
         "format": "uint32",
         "minimum": 0,
         "type": "integer"
        },
        "rotations": {
         "$ref": "#/$defs/Rotations",
         "default": {
          "degrees": [
           0.0,
           90.0,
           180.0,
           270.0
          ],
          "kind": "list"
         }
        }
       },
       "required": [
        "id"
       ],
       "type": "object"
      },
      "RequestSheet": {
       "additionalProperties": false,
       "properties": {
        "count": {
         "description": "Available sheets of this size; absent means unlimited.",
         "format": "uint32",
         "minimum": 0,
         "type": [
          "integer",
          "null"
         ]
        },
        "defects_mm": {
         "default": [],
         "description": "Areas that must stay clear (knots, damage, clamps), in sheet coordinates.",
         "items": {
          "$ref": "#/$defs/Polygon"
         },
         "type": "array"
        },
        "from_import": {
         "default": null,
         "description": "An imported stock-outline id from Library.sheet_outlines. Omit dimensions\nto use its measured size, or supply those same dimensions explicitly.",
         "type": [
          "string",
          "null"
         ]
        },
        "height_mm": {
         "default": 0.0,
         "format": "double",
         "type": "number"
        },
        "id": {
         "type": [
          "string",
          "null"
         ]
        },
        "margins_mm": {
         "$ref": "#/$defs/Margins",
         "default": {
          "bottom": 0.0,
          "left": 0.0,
          "right": 0.0,
          "top": 0.0
         }
        },
        "outline_mm": {
         "default": [],
         "description": "A remnant's usable outline inside its width × height; empty means the\nwhole rectangle.",
         "items": {
          "$ref": "#/$defs/Polygon"
         },
         "type": "array"
        },
        "outline_tolerance_mm": {
         "default": 0.0,
         "description": "Curve-to-polygon error of an imported stock outline. Edge clearance is\nincreased by this error as well as the part-library curve tolerance.",
         "format": "double",
         "type": "number"
        },
        "width_mm": {
         "default": 0.0,
         "format": "double",
         "type": "number"
        }
       },
       "type": "object"
      },
      "Rotations": {
       "oneOf": [
        {
         "additionalProperties": false,
         "properties": {
          "kind": {
           "const": "free",
           "type": "string"
          }
         },
         "required": [
          "kind"
         ],
         "type": "object"
        },
        {
         "additionalProperties": false,
         "properties": {
          "degrees": {
           "format": "double",
           "type": "number"
          },
          "kind": {
           "const": "step",
           "type": "string"
          }
         },
         "required": [
          "kind",
          "degrees"
         ],
         "type": "object"
        },
        {
         "additionalProperties": false,
         "properties": {
          "degrees": {
           "items": {
            "format": "double",
            "type": "number"
           },
           "type": "array"
          },
          "kind": {
           "const": "list",
           "type": "string"
          }
         },
         "required": [
          "kind",
          "degrees"
         ],
         "type": "object"
        }
       ]
      },
      "Style": {
       "enum": [
        "line",
        "arc"
       ],
       "type": "string"
      }
     },
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {
      "layout_path": {
       "description": "A valid layout JSON file, for example `layout.json` written by `nest`.",
       "type": "string"
      },
      "library_path": {
       "type": "string"
      },
      "min_area_mm2": {
       "description": "Minimum remnant area in mm² (default 2500).",
       "format": "double",
       "type": [
        "number",
        "null"
       ]
      },
      "min_dimension_mm": {
       "description": "Minimum remnant bounding dimension in mm (default 25).",
       "format": "double",
       "type": [
        "number",
        "null"
       ]
      },
      "mode": {
       "anyOf": [
        {
         "$ref": "#/$defs/OffcutMode"
        },
        {
         "type": "null"
        }
       ],
       "description": "`rectangular` (guillotine slab, default) or `exact` (true-shape subtraction)."
      },
      "out_dir": {
       "description": "New output directory for SHEET-layer remnant SVG/DXF files and `offcut-report.json`.",
       "type": "string"
      },
      "request": {
       "$ref": "#/$defs/Request"
      },
      "sheet_id": {
       "description": "Optional single sheet id; omit to inspect every sheet in the layout.",
       "type": [
        "string",
        "null"
       ]
      }
     },
     "required": [
      "library_path",
      "request",
      "layout_path",
      "out_dir"
     ],
     "type": "object"
    }
   },
   {
    "name": "import_parts",
    "description": "Import SVG/DXF outlines or one LightBurn lbrn2/lbrn project into a part library (mm). LightBurn groups stay rigid and original artwork/settings are retained for lbrn2 export. Writes the library to a file and returns part ids, areas, bounds, layer kerf and import warnings. Use the ids in nest requests.",
    "inputSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {
      "close_gaps_mm": {
       "description": "Explicitly close gaps up to this many mm (off by default, maximum 1).",
       "format": "double",
       "type": [
        "number",
        "null"
       ]
      },
      "colors": {
       "description": "DXF ACI numbers as strings (e.g. \"7\") or RGB colours (e.g. \"#000000\").",
       "items": {
        "type": "string"
       },
       "type": [
        "array",
        "null"
       ]
      },
      "dxf_unit_mm": {
       "description": "Millimetres per DXF unit when `$INSUNITS` is missing (default 1).",
       "format": "double",
       "type": [
        "number",
        "null"
       ]
      },
      "layers": {
       "description": "Cut layer names; omit to prefer cut/outline/profile, then all closed contours.",
       "items": {
        "type": "string"
       },
       "type": [
        "array",
        "null"
       ]
      },
      "library_path": {
       "description": "Where to write the part library JSON; a new file under `nestbolt/` by default.",
       "type": [
        "string",
        "null"
       ]
      },
      "paths": {
       "description": "SVG/DXF files or one .lbrn/.lbrn2 project, inside the workspace.",
       "items": {
        "type": "string"
       },
       "type": "array"
      },
      "sheet_layers": {
       "description": "Stock-outline layers offered separately from parts (defaults to SHEET).",
       "items": {
        "type": "string"
       },
       "type": [
        "array",
        "null"
       ]
      },
      "svg_user_unit_mm": {
       "description": "Millimetres per SVG user unit when a document has no absolute size (default 25.4/96).",
       "format": "double",
       "type": [
        "number",
        "null"
       ]
      },
      "tolerance_mm": {
       "description": "Maximum distance between exact curves and nesting polygons, in mm (default 0.005).",
       "format": "double",
       "type": [
        "number",
        "null"
       ]
      }
     },
     "required": [
      "paths"
     ],
     "type": "object"
    }
   },
   {
    "name": "nest",
    "description": "Nest library parts on fixed sheets with a repeatable budget (time_budget_s, at most 300). Writes job.json, layout.json, report.json and one SVG and DXF per sheet (preserving LBRN2 for LightBurn); returns the independently checked metrics. Sends progress notifications.",
    "inputSchema": {
     "$defs": {
      "Margins": {
       "additionalProperties": false,
       "properties": {
        "bottom": {
         "format": "double",
         "type": "number"
        },
        "left": {
         "format": "double",
         "type": "number"
        },
        "right": {
         "format": "double",
         "type": "number"
        },
        "top": {
         "format": "double",
         "type": "number"
        }
       },
       "required": [
        "left",
        "right",
        "bottom",
        "top"
       ],
       "type": "object"
      },
      "Mode": {
       "enum": [
        "all",
        "fill_area",
        "fill_priority"
       ],
       "type": "string"
      },
      "Options": {
       "additionalProperties": false,
       "properties": {
        "allow_part_in_hole": {
         "description": "Permit placement inside holes at the requested clearance. Only outer edges can share cuts.",
         "type": "boolean"
        },
        "kerf_mm": {
         "format": "double",
         "type": "number"
        },
        "search_bonus": {
         "default": false,
         "description": "Spend the last tenth of the search aligning shared cuts. Off by default.",
         "type": "boolean"
        }
       },
       "required": [
        "kerf_mm"
       ],
       "type": "object"
      },
      "Options2": {
       "additionalProperties": false,
       "properties": {
        "hole_angle_degrees": {
         "default": 90.0,
         "format": "double",
         "type": "number"
        },
        "kerf_mm": {
         "format": "double",
         "type": "number"
        },
        "length_mm": {
         "default": 3.0,
         "format": "double",
         "type": "number"
        },
        "outer_angle_degrees": {
         "default": 45.0,
         "format": "double",
         "type": "number"
        },
        "style": {
         "$ref": "#/$defs/Style",
         "default": "line"
        }
       },
       "required": [
        "kerf_mm"
       ],
       "type": "object"
      },
      "Polygon": {
       "additionalProperties": false,
       "properties": {
        "holes": {
         "default": [],
         "items": {
          "items": {
           "items": {
            "format": "double",
            "type": "number"
           },
           "maxItems": 2,
           "minItems": 2,
           "type": "array"
          },
          "type": "array"
         },
         "type": "array"
        },
        "outer": {
         "items": {
          "items": {
           "format": "double",
           "type": "number"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": "array"
         },
         "type": "array"
        }
       },
       "required": [
        "outer"
       ],
       "type": "object"
      },
      "Request": {
       "additionalProperties": false,
       "description": "What to nest. Lengths are millimetres.",
       "properties": {
        "common_line": {
         "anyOf": [
          {
           "$ref": "#/$defs/Options"
          },
          {
           "type": "null"
          }
         ],
         "description": "Optional compensated common-line cutting. Its kerf replaces part spacing."
        },
        "edge_spacing_mm": {
         "default": 0.0,
         "description": "Minimum gap between parts and the sheet edge or a defect.",
         "format": "double",
         "type": "number"
        },
        "lead_in": {
         "anyOf": [
          {
           "$ref": "#/$defs/Options2"
          },
          {
           "type": "null"
          }
         ],
         "description": "Reserve cutting leads, choose contour starts and export LEADIN for review."
        },
        "mode": {
         "$ref": "#/$defs/Mode",
         "default": "all"
        },
        "name": {
         "type": [
          "string",
          "null"
         ]
        },
        "parts": {
         "default": [],
         "description": "Parts to place; all library parts with default settings when empty.",
         "items": {
          "$ref": "#/$defs/RequestPart"
         },
         "type": "array"
        },
        "quick_start": {
         "description": "Start with conservative bounding rectangles, then improve the layout.\nOff by default; may trade material quality for a quicker first layout.",
         "type": "boolean"
        },
        "sheets": {
         "items": {
          "$ref": "#/$defs/RequestSheet"
         },
         "type": "array"
        },
        "spacing_mm": {
         "default": 0.0,
         "description": "Minimum gap between parts (kerf plus margin).",
         "format": "double",
         "type": "number"
        }
       },
       "required": [
        "sheets"
       ],
       "type": "object"
      },
      "RequestPart": {
       "additionalProperties": false,
       "properties": {
        "allow_mirror": {
         "default": false,
         "type": "boolean"
        },
        "id": {
         "description": "A library part id.",
         "type": "string"
        },
        "priority": {
         "default": 1.0,
         "format": "double",
         "type": "number"
        },
        "quantity": {
         "default": 1,
         "format": "uint32",
         "minimum": 0,
         "type": "integer"
        },
        "rotations": {
         "$ref": "#/$defs/Rotations",
         "default": {
          "degrees": [
           0.0,
           90.0,
           180.0,
           270.0
          ],
          "kind": "list"
         }
        }
       },
       "required": [
        "id"
       ],
       "type": "object"
      },
      "RequestSheet": {
       "additionalProperties": false,
       "properties": {
        "count": {
         "description": "Available sheets of this size; absent means unlimited.",
         "format": "uint32",
         "minimum": 0,
         "type": [
          "integer",
          "null"
         ]
        },
        "defects_mm": {
         "default": [],
         "description": "Areas that must stay clear (knots, damage, clamps), in sheet coordinates.",
         "items": {
          "$ref": "#/$defs/Polygon"
         },
         "type": "array"
        },
        "from_import": {
         "default": null,
         "description": "An imported stock-outline id from Library.sheet_outlines. Omit dimensions\nto use its measured size, or supply those same dimensions explicitly.",
         "type": [
          "string",
          "null"
         ]
        },
        "height_mm": {
         "default": 0.0,
         "format": "double",
         "type": "number"
        },
        "id": {
         "type": [
          "string",
          "null"
         ]
        },
        "margins_mm": {
         "$ref": "#/$defs/Margins",
         "default": {
          "bottom": 0.0,
          "left": 0.0,
          "right": 0.0,
          "top": 0.0
         }
        },
        "outline_mm": {
         "default": [],
         "description": "A remnant's usable outline inside its width × height; empty means the\nwhole rectangle.",
         "items": {
          "$ref": "#/$defs/Polygon"
         },
         "type": "array"
        },
        "outline_tolerance_mm": {
         "default": 0.0,
         "description": "Curve-to-polygon error of an imported stock outline. Edge clearance is\nincreased by this error as well as the part-library curve tolerance.",
         "format": "double",
         "type": "number"
        },
        "width_mm": {
         "default": 0.0,
         "format": "double",
         "type": "number"
        }
       },
       "type": "object"
      },
      "Rotations": {
       "oneOf": [
        {
         "additionalProperties": false,
         "properties": {
          "kind": {
           "const": "free",
           "type": "string"
          }
         },
         "required": [
          "kind"
         ],
         "type": "object"
        },
        {
         "additionalProperties": false,
         "properties": {
          "degrees": {
           "format": "double",
           "type": "number"
          },
          "kind": {
           "const": "step",
           "type": "string"
          }
         },
         "required": [
          "kind",
          "degrees"
         ],
         "type": "object"
        },
        {
         "additionalProperties": false,
         "properties": {
          "degrees": {
           "items": {
            "format": "double",
            "type": "number"
           },
           "type": "array"
          },
          "kind": {
           "const": "list",
           "type": "string"
          }
         },
         "required": [
          "kind",
          "degrees"
         ],
         "type": "object"
        }
       ]
      },
      "Style": {
       "enum": [
        "line",
        "arc"
       ],
       "type": "string"
      }
     },
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {
      "library_path": {
       "description": "A library written by `import_parts`.",
       "type": "string"
      },
      "out_dir": {
       "description": "New output directory; `nestbolt/runs/<name>` by default.",
       "type": [
        "string",
        "null"
       ]
      },
      "request": {
       "$ref": "#/$defs/Request",
       "description": "Parts (ids from `import_parts`, quantities, rotations), sheets and spacing, in mm."
      },
      "seed": {
       "description": "Random seed (default 0). The same inputs, budget and seed repeat exactly.",
       "format": "uint64",
       "minimum": 0,
       "type": [
        "integer",
        "null"
       ]
      },
      "time_budget_s": {
       "description": "Search budget in seconds, 1 to 300 (default 10).",
       "format": "double",
       "type": [
        "number",
        "null"
       ]
      },
      "time_limit_s": {
       "description": "Optional real-time limit in seconds (`>= time_budget_s`, up to 600) so slower\nmachines can still finish the same repeatable work budget.",
       "format": "double",
       "type": [
        "number",
        "null"
       ]
      }
     },
     "required": [
      "library_path",
      "request"
     ],
     "type": "object"
    }
   },
   {
    "name": "quote_layout",
    "description": "Compute exact curve cut length (deducting verified common-line savings), pierce count, material utilization, trailing offcut area, estimated cut time and optional shop cost breakdown for a valid layout.",
    "inputSchema": {
     "$defs": {
      "Margins": {
       "additionalProperties": false,
       "properties": {
        "bottom": {
         "format": "double",
         "type": "number"
        },
        "left": {
         "format": "double",
         "type": "number"
        },
        "right": {
         "format": "double",
         "type": "number"
        },
        "top": {
         "format": "double",
         "type": "number"
        }
       },
       "required": [
        "left",
        "right",
        "bottom",
        "top"
       ],
       "type": "object"
      },
      "Mode": {
       "enum": [
        "all",
        "fill_area",
        "fill_priority"
       ],
       "type": "string"
      },
      "Options": {
       "additionalProperties": false,
       "properties": {
        "allow_part_in_hole": {
         "description": "Permit placement inside holes at the requested clearance. Only outer edges can share cuts.",
         "type": "boolean"
        },
        "kerf_mm": {
         "format": "double",
         "type": "number"
        },
        "search_bonus": {
         "default": false,
         "description": "Spend the last tenth of the search aligning shared cuts. Off by default.",
         "type": "boolean"
        }
       },
       "required": [
        "kerf_mm"
       ],
       "type": "object"
      },
      "Options2": {
       "additionalProperties": false,
       "properties": {
        "hole_angle_degrees": {
         "default": 90.0,
         "format": "double",
         "type": "number"
        },
        "kerf_mm": {
         "format": "double",
         "type": "number"
        },
        "length_mm": {
         "default": 3.0,
         "format": "double",
         "type": "number"
        },
        "outer_angle_degrees": {
         "default": 45.0,
         "format": "double",
         "type": "number"
        },
        "style": {
         "$ref": "#/$defs/Style",
         "default": "line"
        }
       },
       "required": [
        "kerf_mm"
       ],
       "type": "object"
      },
      "Polygon": {
       "additionalProperties": false,
       "properties": {
        "holes": {
         "default": [],
         "items": {
          "items": {
           "items": {
            "format": "double",
            "type": "number"
           },
           "maxItems": 2,
           "minItems": 2,
           "type": "array"
          },
          "type": "array"
         },
         "type": "array"
        },
        "outer": {
         "items": {
          "items": {
           "format": "double",
           "type": "number"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": "array"
         },
         "type": "array"
        }
       },
       "required": [
        "outer"
       ],
       "type": "object"
      },
      "Pricing": {
       "additionalProperties": false,
       "description": "Optional shop pricing and machine-rate parameters for quoting a layout.",
       "properties": {
        "credit_offcut": {
         "default": false,
         "description": "Credit usable trailing offcut area proportionally against material cost (default false).",
         "type": "boolean"
        },
        "currency": {
         "default": null,
         "description": "Optional currency code or symbol for display (for example \"USD\", \"GBP\", \"EUR\").",
         "type": [
          "string",
          "null"
         ]
        },
        "cut_speed_mm_per_min": {
         "default": null,
         "description": "Cutting speed in mm/min (for example 1200 for plywood laser or 3000 for plasma).",
         "format": "double",
         "type": [
          "number",
          "null"
         ]
        },
        "machine_rate_per_hour": {
         "default": null,
         "description": "Hourly machine + operator rate (requires `cut_speed_mm_per_min` or `pierce_seconds > 0`).",
         "format": "double",
         "type": [
          "number",
          "null"
         ]
        },
        "material_cost_per_m2": {
         "default": null,
         "description": "Alternative material cost per square metre of sheet area.",
         "format": "double",
         "type": [
          "number",
          "null"
         ]
        },
        "pierce_seconds": {
         "default": 0.0,
         "description": "Pierce dwell time per cutting contour in seconds (default 0).",
         "format": "double",
         "type": "number"
        },
        "setup_cost": {
         "default": 0.0,
         "description": "Fixed setup fee per job (default 0).",
         "format": "double",
         "type": "number"
        },
        "sheet_cost": {
         "default": null,
         "description": "Default cost per full sheet (used when `stock_costs` has no override for a stock id).",
         "format": "double",
         "type": [
          "number",
          "null"
         ]
        },
        "stock_costs": {
         "additionalProperties": {
          "format": "double",
          "type": "number"
         },
         "description": "Optional per-stock-id sheet cost overrides.",
         "type": "object"
        }
       },
       "type": "object"
      },
      "Request": {
       "additionalProperties": false,
       "description": "What to nest. Lengths are millimetres.",
       "properties": {
        "common_line": {
         "anyOf": [
          {
           "$ref": "#/$defs/Options"
          },
          {
           "type": "null"
          }
         ],
         "description": "Optional compensated common-line cutting. Its kerf replaces part spacing."
        },
        "edge_spacing_mm": {
         "default": 0.0,
         "description": "Minimum gap between parts and the sheet edge or a defect.",
         "format": "double",
         "type": "number"
        },
        "lead_in": {
         "anyOf": [
          {
           "$ref": "#/$defs/Options2"
          },
          {
           "type": "null"
          }
         ],
         "description": "Reserve cutting leads, choose contour starts and export LEADIN for review."
        },
        "mode": {
         "$ref": "#/$defs/Mode",
         "default": "all"
        },
        "name": {
         "type": [
          "string",
          "null"
         ]
        },
        "parts": {
         "default": [],
         "description": "Parts to place; all library parts with default settings when empty.",
         "items": {
          "$ref": "#/$defs/RequestPart"
         },
         "type": "array"
        },
        "quick_start": {
         "description": "Start with conservative bounding rectangles, then improve the layout.\nOff by default; may trade material quality for a quicker first layout.",
         "type": "boolean"
        },
        "sheets": {
         "items": {
          "$ref": "#/$defs/RequestSheet"
         },
         "type": "array"
        },
        "spacing_mm": {
         "default": 0.0,
         "description": "Minimum gap between parts (kerf plus margin).",
         "format": "double",
         "type": "number"
        }
       },
       "required": [
        "sheets"
       ],
       "type": "object"
      },
      "RequestPart": {
       "additionalProperties": false,
       "properties": {
        "allow_mirror": {
         "default": false,
         "type": "boolean"
        },
        "id": {
         "description": "A library part id.",
         "type": "string"
        },
        "priority": {
         "default": 1.0,
         "format": "double",
         "type": "number"
        },
        "quantity": {
         "default": 1,
         "format": "uint32",
         "minimum": 0,
         "type": "integer"
        },
        "rotations": {
         "$ref": "#/$defs/Rotations",
         "default": {
          "degrees": [
           0.0,
           90.0,
           180.0,
           270.0
          ],
          "kind": "list"
         }
        }
       },
       "required": [
        "id"
       ],
       "type": "object"
      },
      "RequestSheet": {
       "additionalProperties": false,
       "properties": {
        "count": {
         "description": "Available sheets of this size; absent means unlimited.",
         "format": "uint32",
         "minimum": 0,
         "type": [
          "integer",
          "null"
         ]
        },
        "defects_mm": {
         "default": [],
         "description": "Areas that must stay clear (knots, damage, clamps), in sheet coordinates.",
         "items": {
          "$ref": "#/$defs/Polygon"
         },
         "type": "array"
        },
        "from_import": {
         "default": null,
         "description": "An imported stock-outline id from Library.sheet_outlines. Omit dimensions\nto use its measured size, or supply those same dimensions explicitly.",
         "type": [
          "string",
          "null"
         ]
        },
        "height_mm": {
         "default": 0.0,
         "format": "double",
         "type": "number"
        },
        "id": {
         "type": [
          "string",
          "null"
         ]
        },
        "margins_mm": {
         "$ref": "#/$defs/Margins",
         "default": {
          "bottom": 0.0,
          "left": 0.0,
          "right": 0.0,
          "top": 0.0
         }
        },
        "outline_mm": {
         "default": [],
         "description": "A remnant's usable outline inside its width × height; empty means the\nwhole rectangle.",
         "items": {
          "$ref": "#/$defs/Polygon"
         },
         "type": "array"
        },
        "outline_tolerance_mm": {
         "default": 0.0,
         "description": "Curve-to-polygon error of an imported stock outline. Edge clearance is\nincreased by this error as well as the part-library curve tolerance.",
         "format": "double",
         "type": "number"
        },
        "width_mm": {
         "default": 0.0,
         "format": "double",
         "type": "number"
        }
       },
       "type": "object"
      },
      "Rotations": {
       "oneOf": [
        {
         "additionalProperties": false,
         "properties": {
          "kind": {
           "const": "free",
           "type": "string"
          }
         },
         "required": [
          "kind"
         ],
         "type": "object"
        },
        {
         "additionalProperties": false,
         "properties": {
          "degrees": {
           "format": "double",
           "type": "number"
          },
          "kind": {
           "const": "step",
           "type": "string"
          }
         },
         "required": [
          "kind",
          "degrees"
         ],
         "type": "object"
        },
        {
         "additionalProperties": false,
         "properties": {
          "degrees": {
           "items": {
            "format": "double",
            "type": "number"
           },
           "type": "array"
          },
          "kind": {
           "const": "list",
           "type": "string"
          }
         },
         "required": [
          "kind",
          "degrees"
         ],
         "type": "object"
        }
       ]
      },
      "Style": {
       "enum": [
        "line",
        "arc"
       ],
       "type": "string"
      }
     },
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {
      "layout_path": {
       "description": "A valid layout JSON file, for example `layout.json` written by `nest`.",
       "type": "string"
      },
      "library_path": {
       "type": "string"
      },
      "pricing": {
       "$ref": "#/$defs/Pricing",
       "default": {
        "credit_offcut": false,
        "currency": null,
        "cut_speed_mm_per_min": null,
        "machine_rate_per_hour": null,
        "material_cost_per_m2": null,
        "pierce_seconds": 0.0,
        "setup_cost": 0.0,
        "sheet_cost": null
       },
       "description": "Optional shop pricing and machine-rate parameters."
      },
      "request": {
       "$ref": "#/$defs/Request"
      }
     },
     "required": [
      "library_path",
      "request",
      "layout_path"
     ],
     "type": "object"
    }
   },
   {
    "name": "validate_layout",
    "description": "Check a layout file against the library parts, sheets and spacing of a request with the independent validator; returns validity, violations and material metrics.",
    "inputSchema": {
     "$defs": {
      "Margins": {
       "additionalProperties": false,
       "properties": {
        "bottom": {
         "format": "double",
         "type": "number"
        },
        "left": {
         "format": "double",
         "type": "number"
        },
        "right": {
         "format": "double",
         "type": "number"
        },
        "top": {
         "format": "double",
         "type": "number"
        }
       },
       "required": [
        "left",
        "right",
        "bottom",
        "top"
       ],
       "type": "object"
      },
      "Mode": {
       "enum": [
        "all",
        "fill_area",
        "fill_priority"
       ],
       "type": "string"
      },
      "Options": {
       "additionalProperties": false,
       "properties": {
        "allow_part_in_hole": {
         "description": "Permit placement inside holes at the requested clearance. Only outer edges can share cuts.",
         "type": "boolean"
        },
        "kerf_mm": {
         "format": "double",
         "type": "number"
        },
        "search_bonus": {
         "default": false,
         "description": "Spend the last tenth of the search aligning shared cuts. Off by default.",
         "type": "boolean"
        }
       },
       "required": [
        "kerf_mm"
       ],
       "type": "object"
      },
      "Options2": {
       "additionalProperties": false,
       "properties": {
        "hole_angle_degrees": {
         "default": 90.0,
         "format": "double",
         "type": "number"
        },
        "kerf_mm": {
         "format": "double",
         "type": "number"
        },
        "length_mm": {
         "default": 3.0,
         "format": "double",
         "type": "number"
        },
        "outer_angle_degrees": {
         "default": 45.0,
         "format": "double",
         "type": "number"
        },
        "style": {
         "$ref": "#/$defs/Style",
         "default": "line"
        }
       },
       "required": [
        "kerf_mm"
       ],
       "type": "object"
      },
      "Polygon": {
       "additionalProperties": false,
       "properties": {
        "holes": {
         "default": [],
         "items": {
          "items": {
           "items": {
            "format": "double",
            "type": "number"
           },
           "maxItems": 2,
           "minItems": 2,
           "type": "array"
          },
          "type": "array"
         },
         "type": "array"
        },
        "outer": {
         "items": {
          "items": {
           "format": "double",
           "type": "number"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": "array"
         },
         "type": "array"
        }
       },
       "required": [
        "outer"
       ],
       "type": "object"
      },
      "Request": {
       "additionalProperties": false,
       "description": "What to nest. Lengths are millimetres.",
       "properties": {
        "common_line": {
         "anyOf": [
          {
           "$ref": "#/$defs/Options"
          },
          {
           "type": "null"
          }
         ],
         "description": "Optional compensated common-line cutting. Its kerf replaces part spacing."
        },
        "edge_spacing_mm": {
         "default": 0.0,
         "description": "Minimum gap between parts and the sheet edge or a defect.",
         "format": "double",
         "type": "number"
        },
        "lead_in": {
         "anyOf": [
          {
           "$ref": "#/$defs/Options2"
          },
          {
           "type": "null"
          }
         ],
         "description": "Reserve cutting leads, choose contour starts and export LEADIN for review."
        },
        "mode": {
         "$ref": "#/$defs/Mode",
         "default": "all"
        },
        "name": {
         "type": [
          "string",
          "null"
         ]
        },
        "parts": {
         "default": [],
         "description": "Parts to place; all library parts with default settings when empty.",
         "items": {
          "$ref": "#/$defs/RequestPart"
         },
         "type": "array"
        },
        "quick_start": {
         "description": "Start with conservative bounding rectangles, then improve the layout.\nOff by default; may trade material quality for a quicker first layout.",
         "type": "boolean"
        },
        "sheets": {
         "items": {
          "$ref": "#/$defs/RequestSheet"
         },
         "type": "array"
        },
        "spacing_mm": {
         "default": 0.0,
         "description": "Minimum gap between parts (kerf plus margin).",
         "format": "double",
         "type": "number"
        }
       },
       "required": [
        "sheets"
       ],
       "type": "object"
      },
      "RequestPart": {
       "additionalProperties": false,
       "properties": {
        "allow_mirror": {
         "default": false,
         "type": "boolean"
        },
        "id": {
         "description": "A library part id.",
         "type": "string"
        },
        "priority": {
         "default": 1.0,
         "format": "double",
         "type": "number"
        },
        "quantity": {
         "default": 1,
         "format": "uint32",
         "minimum": 0,
         "type": "integer"
        },
        "rotations": {
         "$ref": "#/$defs/Rotations",
         "default": {
          "degrees": [
           0.0,
           90.0,
           180.0,
           270.0
          ],
          "kind": "list"
         }
        }
       },
       "required": [
        "id"
       ],
       "type": "object"
      },
      "RequestSheet": {
       "additionalProperties": false,
       "properties": {
        "count": {
         "description": "Available sheets of this size; absent means unlimited.",
         "format": "uint32",
         "minimum": 0,
         "type": [
          "integer",
          "null"
         ]
        },
        "defects_mm": {
         "default": [],
         "description": "Areas that must stay clear (knots, damage, clamps), in sheet coordinates.",
         "items": {
          "$ref": "#/$defs/Polygon"
         },
         "type": "array"
        },
        "from_import": {
         "default": null,
         "description": "An imported stock-outline id from Library.sheet_outlines. Omit dimensions\nto use its measured size, or supply those same dimensions explicitly.",
         "type": [
          "string",
          "null"
         ]
        },
        "height_mm": {
         "default": 0.0,
         "format": "double",
         "type": "number"
        },
        "id": {
         "type": [
          "string",
          "null"
         ]
        },
        "margins_mm": {
         "$ref": "#/$defs/Margins",
         "default": {
          "bottom": 0.0,
          "left": 0.0,
          "right": 0.0,
          "top": 0.0
         }
        },
        "outline_mm": {
         "default": [],
         "description": "A remnant's usable outline inside its width × height; empty means the\nwhole rectangle.",
         "items": {
          "$ref": "#/$defs/Polygon"
         },
         "type": "array"
        },
        "outline_tolerance_mm": {
         "default": 0.0,
         "description": "Curve-to-polygon error of an imported stock outline. Edge clearance is\nincreased by this error as well as the part-library curve tolerance.",
         "format": "double",
         "type": "number"
        },
        "width_mm": {
         "default": 0.0,
         "format": "double",
         "type": "number"
        }
       },
       "type": "object"
      },
      "Rotations": {
       "oneOf": [
        {
         "additionalProperties": false,
         "properties": {
          "kind": {
           "const": "free",
           "type": "string"
          }
         },
         "required": [
          "kind"
         ],
         "type": "object"
        },
        {
         "additionalProperties": false,
         "properties": {
          "degrees": {
           "format": "double",
           "type": "number"
          },
          "kind": {
           "const": "step",
           "type": "string"
          }
         },
         "required": [
          "kind",
          "degrees"
         ],
         "type": "object"
        },
        {
         "additionalProperties": false,
         "properties": {
          "degrees": {
           "items": {
            "format": "double",
            "type": "number"
           },
           "type": "array"
          },
          "kind": {
           "const": "list",
           "type": "string"
          }
         },
         "required": [
          "kind",
          "degrees"
         ],
         "type": "object"
        }
       ]
      },
      "Style": {
       "enum": [
        "line",
        "arc"
       ],
       "type": "string"
      }
     },
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {
      "layout_path": {
       "description": "A layout JSON file, for example `layout.json` written by `nest`.",
       "type": "string"
      },
      "library_path": {
       "type": "string"
      },
      "request": {
       "$ref": "#/$defs/Request"
      }
     },
     "required": [
      "library_path",
      "request",
      "layout_path"
     ],
     "type": "object"
    }
   }
  ]
 },
 "files": {
  "out-a": {
   "desk-kit-sheet-1.lbrn2": {
    "sha256": "45c0232e0c10e3054dc1cb477965cb897bc27823b0fc30c4481c6f925db1b1df",
    "bytes": 16451
   },
   "desk-kit-sheet-2.lbrn2": {
    "sha256": "c9f6ad4314d742606610f24472ba031e32ecc5d9c0bc29b3eee1a52d7eb75bb7",
    "bytes": 10406
   },
   "job.json": {
    "sha256": "9ba16993cf4954d333e01f3319975aed8c6e56bd90b8862477c6d28b41e75306",
    "bytes": 36942
   },
   "layout.json": {
    "sha256": "c443e7730f1012fd8a6fd26147ff6c6546cb5e841efca14df3cc4442042704f1",
    "bytes": 3727
   },
   "report.json": {
    "sha256": "c3a30614cca4aef41935f2c6e117630fc0487f4603f92382a437d1315a9072d7",
    "bytes": 1025
   }
  },
  "out-b": {
   "desk-kit-sheet-1.lbrn2": {
    "sha256": "45c0232e0c10e3054dc1cb477965cb897bc27823b0fc30c4481c6f925db1b1df",
    "bytes": 16451
   },
   "desk-kit-sheet-2.lbrn2": {
    "sha256": "c9f6ad4314d742606610f24472ba031e32ecc5d9c0bc29b3eee1a52d7eb75bb7",
    "bytes": 10406
   },
   "job.json": {
    "sha256": "9ba16993cf4954d333e01f3319975aed8c6e56bd90b8862477c6d28b41e75306",
    "bytes": 36942
   },
   "layout.json": {
    "sha256": "c443e7730f1012fd8a6fd26147ff6c6546cb5e841efca14df3cc4442042704f1",
    "bytes": 3727
   },
   "report.json": {
    "sha256": "034ddeabc9fa0bbe4c4c92f5bd48cf056143dbfe89461643a754dfd8929a72d6",
    "bytes": 1025
   }
  },
  "out-c": {
   "desk-kit-sheet-1.lbrn2": {
    "sha256": "45c0232e0c10e3054dc1cb477965cb897bc27823b0fc30c4481c6f925db1b1df",
    "bytes": 16451
   },
   "desk-kit-sheet-2.lbrn2": {
    "sha256": "d3dd964c4a066dcacef9a49244480cb953139d9cb8270fb6b1084d36762be0de",
    "bytes": 10405
   }
  },
  "out-d": {}
 },
 "layout_a_equals_b": true,
 "lightburn_output_check": {
  "input": {
   "cut_settings": [
    "0",
    "1",
    "2"
   ],
   "groups": 12,
   "leaf_shapes_by_type_and_layer": {
    "Path/layer 0": 12,
    "Path/layer 1": 9,
    "Path/layer 2": 12
   }
  },
  "sheets": {
   "desk-kit-sheet-1.lbrn2": {
    "input_cut_settings_text_identical": {
     "0": true,
     "1": true,
     "2": true
    },
    "added_cut_setting_indexes": [
     "30"
    ],
    "groups": 7,
    "leaf_shapes_by_type_and_layer": {
     "Path/layer 0": 7,
     "Path/layer 1": 5,
     "Path/layer 2": 7,
     "Rect/layer 30": 1
    }
   },
   "desk-kit-sheet-2.lbrn2": {
    "input_cut_settings_text_identical": {
     "0": true,
     "1": true,
     "2": true
    },
    "added_cut_setting_indexes": [
     "30"
    ],
    "groups": 5,
    "leaf_shapes_by_type_and_layer": {
     "Path/layer 0": 5,
     "Path/layer 1": 4,
     "Path/layer 2": 5,
     "Rect/layer 30": 1
    }
   }
  },
  "all_sheets": {
   "groups": 12,
   "leaf_shapes_by_type_and_layer": {
    "Path/layer 0": 12,
    "Path/layer 1": 9,
    "Path/layer 2": 12,
    "Rect/layer 30": 2
   }
  }
 },
 "stderr_tail": []
}