{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/pegboard-accessories/schema.json",
 "title": "Pegboard hooks and holders — parameters",
 "description": "Design 3D-printable pegboard hooks, tool clips, shelves, cups, stackable bins and clip-on second levels to your board's holes. Print in PETG, export 3MF or STL. All lengths are millimetres. Unknown keys are rejected; out-of-range values are rejected by the URL and API and clamped when a project file is opened.",
 "x-tool": "pegboard-accessories",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "board",
   "title": "Pegboard"
  },
  {
   "id": "mount",
   "title": "Mount"
  },
  {
   "id": "accessory",
   "title": "Accessory"
  },
  {
   "id": "print",
   "title": "Printing"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "us14-hook-50",
    "title": "US 1/4 inch hook, 50 mm",
    "description": "Straight prong for 1 inch hardboard with 9/32 inch holes (7.14 mm).",
    "values": {
     "boardFamily": "us-14",
     "holePitchMm": 25.4,
     "holeDiameterMm": 7.14,
     "boardThicknessMm": 6.4,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "accessoryType": "hook",
     "hookStyle": "straight",
     "reachMm": 50,
     "hookWidthMm": 10,
     "wallThickness": 4,
     "color": "#e85d22"
    }
   },
   {
    "id": "us14-hook-100",
    "title": "US 1/4 inch J hook, 100 mm",
    "description": "Long-reach curled hook for cables and bulky, light items; 6 mm thick section.",
    "values": {
     "boardFamily": "us-14",
     "holePitchMm": 25.4,
     "holeDiameterMm": 7.14,
     "boardThicknessMm": 6.4,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "accessoryType": "hook",
     "hookStyle": "j",
     "reachMm": 100,
     "hookWidthMm": 12,
     "wallThickness": 6,
     "color": "#2563eb"
    }
   },
   {
    "id": "us14-l-hook-75",
    "title": "US 1/4 inch L hook, 75 mm",
    "description": "Hook with a short upturned end for hammers and wrenches on a 1 inch board.",
    "values": {
     "boardFamily": "us-14",
     "holePitchMm": 25.4,
     "holeDiameterMm": 7.14,
     "boardThicknessMm": 6.4,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "accessoryType": "hook",
     "hookStyle": "l",
     "reachMm": 75,
     "hookWidthMm": 12,
     "wallThickness": 6,
     "color": "#15803d"
    }
   },
   {
    "id": "us14-u-cradle-80",
    "title": "US 1/4 inch U cradle, 80 mm wide",
    "description": "Two-arm cradle that holds shafts and handles across a 1 inch pegboard.",
    "values": {
     "boardFamily": "us-14",
     "holePitchMm": 25.4,
     "holeDiameterMm": 7.14,
     "boardThicknessMm": 6.4,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "pegColumns": 3,
     "accessoryType": "hook",
     "hookStyle": "u",
     "reachMm": 60,
     "hookWidthMm": 80,
     "wallThickness": 6,
     "color": "#d97706"
    }
   },
   {
    "id": "us14-shelf-150",
    "title": "US 1/4 inch shelf, 150 x 60 mm",
    "description": "Shelf with a 10 mm front lip on four pegs per row, for cans, jars and boxes.",
    "values": {
     "boardFamily": "us-14",
     "holePitchMm": 25.4,
     "holeDiameterMm": 7.14,
     "boardThicknessMm": 6.4,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "pegColumns": 4,
     "accessoryType": "shelf",
     "shelfWidthMm": 150,
     "shelfDepthMm": 60,
     "lipHeightMm": 10,
     "wallThickness": 4,
     "color": "#0f766e"
    }
   },
   {
    "id": "us14-fit-test-strip",
    "title": "Hook with fit test strip",
    "description": "The 50 mm hook plus a small two-peg strip to check the fit on your board first.",
    "values": {
     "boardFamily": "us-14",
     "holePitchMm": 25.4,
     "holeDiameterMm": 7.14,
     "boardThicknessMm": 6.4,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "accessoryType": "hook",
     "hookStyle": "straight",
     "reachMm": 50,
     "hookWidthMm": 10,
     "wallThickness": 4,
     "includeFitTest": true,
     "color": "#b91c1c"
    }
   },
   {
    "id": "us18-hook-light",
    "title": "US 1/8 inch light-duty hook",
    "description": "Short hook for thin 1/8 inch board with 3/16 inch holes (4.76 mm); light loads only.",
    "values": {
     "boardFamily": "us-18",
     "holePitchMm": 25.4,
     "holeDiameterMm": 4.76,
     "boardThicknessMm": 3.2,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "accessoryType": "hook",
     "hookStyle": "straight",
     "reachMm": 40,
     "hookWidthMm": 8,
     "wallThickness": 4,
     "color": "#7c3aed"
    }
   },
   {
    "id": "eu25-hook-50",
    "title": "Metric 25 mm hook, 50 mm",
    "description": "Straight hook for 5 mm holes on a 25 mm grid, the common European board.",
    "values": {
     "boardFamily": "eu-25",
     "holePitchMm": 25,
     "holeDiameterMm": 5,
     "boardThicknessMm": 6,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "accessoryType": "hook",
     "hookStyle": "straight",
     "reachMm": 50,
     "hookWidthMm": 10,
     "wallThickness": 4,
     "color": "#0284c7"
    }
   },
   {
    "id": "eu25-cup-60",
    "title": "Metric 25 mm cup, 60 mm",
    "description": "Round 60 mm cup for screws, bits and small parts on a 25 mm grid.",
    "values": {
     "boardFamily": "eu-25",
     "holePitchMm": 25,
     "holeDiameterMm": 5,
     "boardThicknessMm": 6,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "pegColumns": 2,
     "accessoryType": "cup",
     "cupInnerMm": 60,
     "cupHeightMm": 80,
     "wallThickness": 6,
     "color": "#ca8a04"
    }
   },
   {
    "id": "eu25-bin-holder",
    "title": "Metric 25 mm bin holder",
    "description": "Open-front bin for small parts on a 25 mm grid, 100 x 70 x 60 mm.",
    "values": {
     "boardFamily": "eu-25",
     "holePitchMm": 25,
     "holeDiameterMm": 5,
     "boardThicknessMm": 6,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "pegColumns": 3,
     "accessoryType": "bin-holder",
     "binWidthMm": 100,
     "binDepthMm": 70,
     "binHeightMm": 60,
     "wallThickness": 6,
     "color": "#334155"
    }
   },
   {
    "id": "slot-metal-round-hook",
    "title": "Steel panel hook, round holes",
    "description": "Hook for the 1/4 inch round holes of a slotted steel panel; measure your holes first.",
    "values": {
     "boardFamily": "slot-metal",
     "holePitchMm": 25.4,
     "holeDiameterMm": 6.35,
     "boardThicknessMm": 0.9,
     "boardGapMm": 19.05,
     "mountStyle": "round-pegs",
     "accessoryType": "hook",
     "hookStyle": "straight",
     "reachMm": 50,
     "hookWidthMm": 10,
     "wallThickness": 4,
     "color": "#db2777"
    }
   },
   {
    "id": "slot-metal-tab-hook",
    "title": "Steel panel hook, slot tab",
    "description": "Hook with a tab for the vertical slots of a thin steel panel; slot sizes must be measured.",
    "values": {
     "boardFamily": "slot-metal",
     "holePitchMm": 25.4,
     "boardThicknessMm": 0.9,
     "boardGapMm": 19.05,
     "mountStyle": "slot-tab",
     "slotWidthMm": 6,
     "slotHeightMm": 12,
     "sheetThicknessMm": 0.9,
     "accessoryType": "hook",
     "hookStyle": "straight",
     "reachMm": 50,
     "hookWidthMm": 10,
     "wallThickness": 4,
     "color": "#059669"
    }
   },
   {
    "id": "us14-clip-screwdriver-20",
    "title": "US 1/4 inch tool clip, 20 mm shaft",
    "description": "C-clip for a 20 mm screwdriver or tool handle; print two and hang them side by side.",
    "values": {
     "boardFamily": "us-14",
     "holePitchMm": 25.4,
     "holeDiameterMm": 7.14,
     "boardThicknessMm": 6.4,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "accessoryType": "clip",
     "clipKind": "round",
     "clipSizeMm": 20,
     "clipOpeningPct": 80,
     "clipWidthMm": 10,
     "clipStack": 1,
     "wallThickness": 4,
     "color": "#9a3412"
    }
   },
   {
    "id": "us14-clip-rack-3x12",
    "title": "US 1/4 inch clip rack, three rows of 12 mm",
    "description": "Three C-clips for 12 mm handles on one part, each on its own pair of pegs.",
    "values": {
     "boardFamily": "us-14",
     "holePitchMm": 25.4,
     "holeDiameterMm": 7.14,
     "boardThicknessMm": 6.4,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "accessoryType": "clip",
     "clipKind": "round",
     "clipSizeMm": 12,
     "clipOpeningPct": 80,
     "clipWidthMm": 10,
     "clipStack": 3,
     "wallThickness": 4,
     "color": "#4f46e5"
    }
   },
   {
    "id": "eu25-clip-flat-6",
    "title": "Metric 25 mm flat clip, 6 mm handle",
    "description": "U-spring for wrenches and other flat handles 6 mm thick, on a 25 mm grid.",
    "values": {
     "boardFamily": "eu-25",
     "holePitchMm": 25,
     "holeDiameterMm": 5,
     "boardThicknessMm": 6,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "accessoryType": "clip",
     "clipKind": "flat",
     "clipSizeMm": 6,
     "clipOpeningPct": 80,
     "clipWidthMm": 10,
     "clipDepthMm": 20,
     "clipStack": 1,
     "wallThickness": 4,
     "color": "#0d9488"
    }
   },
   {
    "id": "eu25-bin-stackable",
    "title": "Metric 25 mm stackable bin",
    "description": "Open-front bin that stacks: hang copies four holes apart and they sit one above another.",
    "values": {
     "boardFamily": "eu-25",
     "holePitchMm": 25,
     "holeDiameterMm": 5,
     "boardThicknessMm": 6,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "pegColumns": 2,
     "accessoryType": "bin-holder",
     "binWidthMm": 100,
     "binDepthMm": 70,
     "stackStepPitches": 4,
     "wallThickness": 4,
     "color": "#dc2626"
    }
   },
   {
    "id": "us14-shelf-clip-base",
    "title": "US 1/4 inch shelf, base for clip-on parts",
    "description": "160 x 80 mm shelf with 12 mm of clear back wall above the pegs, made to carry clip-on cups, bins and shelves.",
    "values": {
     "boardFamily": "us-14",
     "holePitchMm": 25.4,
     "holeDiameterMm": 7.14,
     "boardThicknessMm": 6.4,
     "boardGapMm": 12.7,
     "mountStyle": "round-pegs",
     "pegColumns": 4,
     "accessoryType": "shelf",
     "shelfWidthMm": 160,
     "shelfDepthMm": 80,
     "lipHeightMm": 10,
     "railExtraMm": 12,
     "wallThickness": 4,
     "color": "#65a30d"
    }
   },
   {
    "id": "us14-clip-on-cup",
    "title": "Clip-on cup, second level",
    "description": "50 mm cup with a saddle instead of pegs: it stands on the shelf made for clip-on parts and clips over its back wall.",
    "values": {
     "boardFamily": "us-14",
     "holePitchMm": 25.4,
     "accessoryType": "cup",
     "mountStyle": "clip-on",
     "cupInnerMm": 50,
     "cupHeightMm": 70,
     "clipDropMm": 47,
     "clipBaseThicknessMm": 4,
     "wallThickness": 4,
     "color": "#1d4ed8"
    }
   }
  ]
 },
 "x-coreParams": {
  "exportFormat": {
   "type": "string",
   "title": "File format",
   "description": "3mf = 3MF (mm); stl = STL files in a zip (mm)",
   "x-group": "download",
   "x-role": "core.exportFormat",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "3mf",
    "stl"
   ],
   "default": "3mf"
  },
  "exportTol": {
   "type": "number",
   "title": "Mesh precision",
   "description": "Simplification tolerance in mm (0 = original mesh).",
   "x-group": "download",
   "x-role": "core.exportTolerance",
   "x-unit": "mm",
   "x-agentSafe": true,
   "enum": [
    0,
    0.01,
    0.02
   ],
   "default": 0.02
  },
  "units": {
   "type": "string",
   "title": "Units shown",
   "description": "Display only: mm or inches (1 in = 25.4 mm). Stored values, the API and exports are always mm.",
   "x-group": "view",
   "x-role": "core.displayUnits",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "mm",
    "in"
   ],
   "x-enumTitles": {
    "mm": "Millimetres",
    "in": "Inches"
   },
   "default": "mm"
  }
 },
 "type": "object",
 "properties": {
  "boardFamily": {
   "type": "string",
   "enum": [
    "us-14",
    "us-18",
    "eu-25",
    "slot-metal",
    "custom"
   ],
   "x-enumTitles": {
    "us-14": "US 1/4 inch hardboard (9/32 in holes, 1 in grid)",
    "us-18": "US 1/8 inch hardboard, light duty (3/16 in holes, 1 in grid)",
    "eu-25": "Metric (5 mm holes, 25 mm grid)",
    "slot-metal": "Slot-type steel panel (1 in grid)",
    "custom": "Custom, measured by hand"
   },
   "title": "Board family",
   "description": "Sets which grid the warnings expect; the presets fill in the matching pitch, hole, thickness and gap.",
   "x-group": "board",
   "x-agentSafe": true,
   "x-label-lv": "Plāksnes tips",
   "default": "us-14",
   "x-resetOnPreset": true
  },
  "holePitchMm": {
   "type": "number",
   "minimum": 20,
   "maximum": 40,
   "x-step": 0.05,
   "title": "Hole pitch",
   "description": "Centre-to-centre distance of the holes; 25.0 and 25.4 mm look alike but must never be mixed.",
   "x-group": "board",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Caurumu solis",
   "default": 25.4,
   "x-resetOnPreset": true
  },
  "holeDiameterMm": {
   "type": "number",
   "minimum": 4,
   "maximum": 12,
   "x-step": 0.01,
   "title": "Hole diameter",
   "description": "Measure it: 1/4 inch boards are often punched 9/32 inch (7.14 mm), not 6.35 mm.",
   "x-group": "board",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountStyle": "round-pegs"
   },
   "x-agentSafe": true,
   "x-label-lv": "Cauruma diametrs",
   "default": 7.14,
   "x-resetOnPreset": true
  },
  "boardThicknessMm": {
   "type": "number",
   "minimum": 0.5,
   "maximum": 12,
   "x-step": 0.01,
   "title": "Board thickness",
   "description": "The peg is straight for this depth and only then bends down behind the board.",
   "x-group": "board",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Plāksnes biezums",
   "default": 6.4,
   "x-resetOnPreset": true
  },
  "boardGapMm": {
   "type": "number",
   "minimum": 6,
   "maximum": 40,
   "x-step": 0.05,
   "title": "Wall gap",
   "description": "Free space between the back of the board and the wall, where the barb hangs; 12.7 mm is typical.",
   "x-group": "board",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe pie sienas",
   "default": 12.7,
   "x-resetOnPreset": true
  },
  "mountStyle": {
   "type": "string",
   "enum": [
    "round-pegs",
    "slot-tab",
    "clip-on"
   ],
   "x-enumTitles": {
    "round-pegs": "Round pegs in holes",
    "slot-tab": "Tab in a slot (slotted steel panel)",
    "clip-on": "Clip-on over a shelf back wall"
   },
   "title": "Mount style",
   "description": "Use the tab only on thin steel panels with vertical slots. The clip-on saddle turns a shelf, cup or bin holder into a second level for a shelf.",
   "x-group": "mount",
   "x-agentSafe": true,
   "x-label-lv": "Piestiprinājuma veids",
   "default": "round-pegs",
   "x-resetOnPreset": true
  },
  "slotWidthMm": {
   "type": "number",
   "minimum": 3,
   "maximum": 20,
   "x-step": 0.1,
   "title": "Slot width",
   "description": "Calliper width of one slot on your panel; there is no standard, so measure it.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountStyle": "slot-tab"
   },
   "x-agentSafe": true,
   "x-label-lv": "Spraugas platums",
   "default": 6,
   "x-resetOnPreset": true
  },
  "slotHeightMm": {
   "type": "number",
   "minimum": 6,
   "maximum": 60,
   "x-step": 0.5,
   "title": "Slot height",
   "description": "Calliper height of one slot; the tab is sized to about half of it.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountStyle": "slot-tab"
   },
   "x-agentSafe": true,
   "x-label-lv": "Spraugas augstums",
   "default": 12,
   "x-resetOnPreset": true
  },
  "sheetThicknessMm": {
   "type": "number",
   "minimum": 0.5,
   "maximum": 3,
   "x-step": 0.05,
   "title": "Sheet thickness",
   "description": "Thickness of the steel sheet; 20 gauge is about 0.9 mm.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountStyle": "slot-tab"
   },
   "x-agentSafe": true,
   "x-label-lv": "Lokšņu biezums",
   "default": 0.9,
   "x-resetOnPreset": true
  },
  "pegColumns": {
   "type": "integer",
   "minimum": 1,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Pegs per row",
   "description": "Number of pegs side by side, one pitch apart; more pegs share the load on a shelf or holder.",
   "x-group": "mount",
   "x-unit": "count",
   "x-visibleIf": {
    "all": [
     {
      "mountStyle": [
       "round-pegs",
       "slot-tab"
      ]
     },
     {
      "any": [
       {
        "accessoryType": [
         "shelf",
         "cup",
         "bin-holder"
        ]
       },
       {
        "hookStyle": "u"
       }
      ]
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Knaģi rindā",
   "default": 2,
   "x-resetOnPreset": true
  },
  "pegRowSpan": {
   "type": "integer",
   "minimum": 1,
   "maximum": 3,
   "multipleOf": 1,
   "title": "Row span (pitches)",
   "description": "Pitches between the upper row with barbs and the lower plain row.",
   "x-group": "mount",
   "x-unit": "count",
   "x-visibleIf": {
    "mountStyle": "round-pegs"
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Rindu attālums (soļos)",
   "default": 1,
   "x-resetOnPreset": true
  },
  "barbLengthMm": {
   "type": "number",
   "minimum": 4,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Barb length",
   "description": "How far the barb hangs down behind the board; longer means the hook must be lifted higher before it can come off.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountStyle": "round-pegs"
   },
   "x-agentSafe": true,
   "x-label-lv": "Āķīša garums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "clipBaseThicknessMm": {
   "type": "number",
   "minimum": 2.4,
   "maximum": 8,
   "x-step": 0.4,
   "title": "Base wall thickness",
   "description": "Back wall thickness of the shelf this part clips onto: the same value as that shelf's wall thickness.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountStyle": "clip-on"
   },
   "x-agentSafe": true,
   "x-label-lv": "Pamatnes sienas biezums",
   "default": 4,
   "x-resetOnPreset": true
  },
  "clipDropMm": {
   "type": "number",
   "minimum": 10,
   "maximum": 80,
   "multipleOf": 1,
   "title": "Saddle depth",
   "description": "Height of the saddle along the base wall. Set it to the base shelf's \"Back wall above deck\" figure or a little more, so the part stands on the deck.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountStyle": "clip-on"
   },
   "x-agentSafe": true,
   "x-label-lv": "Sedla dziļums",
   "default": 35,
   "x-resetOnPreset": true
  },
  "railExtraMm": {
   "type": "number",
   "minimum": 0,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Clear wall above pegs",
   "description": "Extra back wall above the top peg. Set 12 mm or more on a shelf that will carry clip-on parts, so their rear tabs clear the pegs.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-visibleIf": {
    "all": [
     {
      "mountStyle": [
       "round-pegs",
       "slot-tab"
      ]
     },
     {
      "accessoryType": [
       "shelf",
       "cup",
       "bin-holder"
      ]
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Brīva siena virs knaģiem",
   "default": 0,
   "x-resetOnPreset": true
  },
  "accessoryType": {
   "type": "string",
   "enum": [
    "hook",
    "clip",
    "shelf",
    "cup",
    "bin-holder"
   ],
   "x-enumTitles": {
    "hook": "Hook",
    "clip": "Tool clip",
    "shelf": "Shelf",
    "cup": "Cup",
    "bin-holder": "Bin holder"
   },
   "title": "Accessory",
   "description": "What to generate; each prints flat on the bed without supports.",
   "x-group": "accessory",
   "x-agentSafe": true,
   "x-label-lv": "Piederums",
   "default": "hook",
   "x-resetOnPreset": true
  },
  "hookStyle": {
   "type": "string",
   "enum": [
    "straight",
    "l",
    "j",
    "u"
   ],
   "x-enumTitles": {
    "straight": "Straight prong",
    "l": "L hook (short right-angle tip)",
    "j": "J hook (curled tip)",
    "u": "U hook (two-arm cradle)"
   },
   "title": "Hook style",
   "description": "Straight for loops and rings, L or J to stop items sliding off, U as a cradle for shafts and handles.",
   "x-group": "accessory",
   "x-visibleIf": {
    "accessoryType": "hook"
   },
   "x-agentSafe": true,
   "x-label-lv": "Āķa veids",
   "default": "straight",
   "x-resetOnPreset": true
  },
  "reachMm": {
   "type": "number",
   "minimum": 20,
   "maximum": 150,
   "multipleOf": 1,
   "title": "Reach",
   "description": "Distance from the board face to the tip of the hook, or the depth of a U cradle; a long reach multiplies the bending moment.",
   "x-group": "accessory",
   "x-unit": "mm",
   "x-visibleIf": {
    "accessoryType": "hook"
   },
   "x-agentSafe": true,
   "x-label-lv": "Izspiedums",
   "default": 50,
   "x-resetOnPreset": true
  },
  "hookWidthMm": {
   "type": "number",
   "minimum": 6,
   "maximum": 160,
   "multipleOf": 1,
   "title": "Hook width",
   "description": "Width along the board; for a U hook this is the overall cradle width.",
   "x-group": "accessory",
   "x-unit": "mm",
   "x-visibleIf": {
    "accessoryType": "hook"
   },
   "x-agentSafe": true,
   "x-label-lv": "Āķa platums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "clipKind": {
   "type": "string",
   "enum": [
    "round",
    "flat"
   ],
   "x-enumTitles": {
    "round": "Round shaft (C-ring)",
    "flat": "Flat handle (U-spring)"
   },
   "title": "Clip shape",
   "description": "A C-ring for shafts and handles, or a U-spring with two arms for flat handles such as wrenches.",
   "x-group": "accessory",
   "x-visibleIf": {
    "accessoryType": "clip"
   },
   "x-agentSafe": true,
   "x-label-lv": "Klipša forma",
   "default": "round",
   "x-resetOnPreset": true
  },
  "clipSizeMm": {
   "type": "number",
   "minimum": 4,
   "maximum": 40,
   "x-step": 0.5,
   "title": "Tool size",
   "description": "Diameter of the tool shaft for a round clip, or thickness of the handle for a flat one; measure the part that sits in the clip.",
   "x-group": "accessory",
   "x-unit": "mm",
   "x-visibleIf": {
    "accessoryType": "clip"
   },
   "x-agentSafe": true,
   "x-label-lv": "Rīka izmērs",
   "default": 20,
   "x-resetOnPreset": true
  },
  "clipOpeningPct": {
   "type": "number",
   "minimum": 50,
   "maximum": 95,
   "multipleOf": 5,
   "title": "Lip opening",
   "description": "Gap between the lips as a share of the tool size; narrower holds better but strains the spring, so test two or three values.",
   "x-group": "accessory",
   "x-unit": "pct",
   "x-visibleIf": {
    "accessoryType": "clip"
   },
   "x-agentSafe": true,
   "x-label-lv": "Lūpu atvere",
   "default": 80,
   "x-resetOnPreset": true
  },
  "clipWidthMm": {
   "type": "number",
   "minimum": 8,
   "maximum": 16,
   "multipleOf": 1,
   "title": "Clip width",
   "description": "Width of the clip along the tool; 10 mm suits most hand tools, use more for heavy ones.",
   "x-group": "accessory",
   "x-unit": "mm",
   "x-visibleIf": {
    "accessoryType": "clip"
   },
   "x-agentSafe": true,
   "x-label-lv": "Klipša platums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "clipDepthMm": {
   "type": "number",
   "minimum": 10,
   "maximum": 50,
   "multipleOf": 1,
   "title": "Arm length",
   "description": "Free length of the two spring arms of a flat clip; longer arms are gentler on the spring.",
   "x-group": "accessory",
   "x-unit": "mm",
   "x-visibleIf": {
    "all": [
     {
      "accessoryType": "clip"
     },
     {
      "clipKind": "flat"
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Roku garums",
   "default": 20,
   "x-resetOnPreset": true
  },
  "clipStack": {
   "type": "integer",
   "minimum": 1,
   "maximum": 3,
   "multipleOf": 1,
   "title": "Clip levels",
   "description": "Clips on one part, one above another, each on its own pair of pegs; print two parts for one long tool.",
   "x-group": "accessory",
   "x-unit": "count",
   "x-visibleIf": {
    "accessoryType": "clip"
   },
   "x-agentSafe": true,
   "x-label-lv": "Klipšu līmeņi",
   "default": 1,
   "x-resetOnPreset": true
  },
  "shelfWidthMm": {
   "type": "number",
   "minimum": 40,
   "maximum": 250,
   "multipleOf": 1,
   "title": "Shelf width",
   "description": "Width along the board; pegs are spread evenly over it.",
   "x-group": "accessory",
   "x-unit": "mm",
   "x-visibleIf": {
    "accessoryType": "shelf"
   },
   "x-agentSafe": true,
   "x-label-lv": "Plaukta platums",
   "default": 150,
   "x-resetOnPreset": true
  },
  "shelfDepthMm": {
   "type": "number",
   "minimum": 30,
   "maximum": 150,
   "multipleOf": 1,
   "title": "Shelf depth",
   "description": "How far the shelf sticks out; a deep shelf loads the back plate more.",
   "x-group": "accessory",
   "x-unit": "mm",
   "x-visibleIf": {
    "accessoryType": "shelf"
   },
   "x-agentSafe": true,
   "x-label-lv": "Plaukta dziļums",
   "default": 60,
   "x-resetOnPreset": true
  },
  "lipHeightMm": {
   "type": "number",
   "minimum": 0,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Front lip height",
   "description": "Raised edge at the front that keeps items from rolling off; 0 for a flat shelf.",
   "x-group": "accessory",
   "x-unit": "mm",
   "x-visibleIf": {
    "accessoryType": "shelf"
   },
   "x-agentSafe": true,
   "x-label-lv": "Priekšējās malas augstums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "cupInnerMm": {
   "type": "number",
   "minimum": 25,
   "maximum": 120,
   "multipleOf": 1,
   "title": "Cup inner diameter",
   "description": "Inside diameter of the round cup.",
   "x-group": "accessory",
   "x-unit": "mm",
   "x-visibleIf": {
    "accessoryType": "cup"
   },
   "x-agentSafe": true,
   "x-label-lv": "Podiņa iekšējais diametrs",
   "default": 60,
   "x-resetOnPreset": true
  },
  "cupHeightMm": {
   "type": "number",
   "minimum": 30,
   "maximum": 150,
   "multipleOf": 1,
   "title": "Cup height",
   "description": "Outside height of the cup, which is open at the top.",
   "x-group": "accessory",
   "x-unit": "mm",
   "x-visibleIf": {
    "accessoryType": "cup"
   },
   "x-agentSafe": true,
   "x-label-lv": "Podiņa augstums",
   "default": 80,
   "x-resetOnPreset": true
  },
  "binWidthMm": {
   "type": "number",
   "minimum": 40,
   "maximum": 200,
   "multipleOf": 1,
   "title": "Bin width",
   "description": "Outside width of the rectangular bin along the board.",
   "x-group": "accessory",
   "x-unit": "mm",
   "x-visibleIf": {
    "accessoryType": "bin-holder"
   },
   "x-agentSafe": true,
   "x-label-lv": "Kastes platums",
   "default": 100,
   "x-resetOnPreset": true
  },
  "binDepthMm": {
   "type": "number",
   "minimum": 30,
   "maximum": 150,
   "multipleOf": 1,
   "title": "Bin depth",
   "description": "Outside depth of the bin measured from the board.",
   "x-group": "accessory",
   "x-unit": "mm",
   "x-visibleIf": {
    "accessoryType": "bin-holder"
   },
   "x-agentSafe": true,
   "x-label-lv": "Kastes dziļums",
   "default": 70,
   "x-resetOnPreset": true
  },
  "binHeightMm": {
   "type": "number",
   "minimum": 30,
   "maximum": 150,
   "multipleOf": 1,
   "title": "Bin height",
   "description": "Outside height of the back wall; the front wall is half as high for easy access.",
   "x-group": "accessory",
   "x-unit": "mm",
   "x-visibleIf": {
    "all": [
     {
      "accessoryType": "bin-holder"
     },
     {
      "stackStepPitches": 0
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Kastes augstums",
   "default": 60,
   "x-resetOnPreset": true
  },
  "stackStepPitches": {
   "type": "integer",
   "minimum": 0,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Stack step (holes)",
   "description": "0 for a plain bin. 3 to 6 makes a stackable bin: hang bins exactly this many holes apart and they sit one above another with a 2 mm gap, each on its own pegs.",
   "x-group": "accessory",
   "x-unit": "count",
   "x-visibleIf": {
    "accessoryType": "bin-holder"
   },
   "x-agentSafe": true,
   "x-label-lv": "Stāvu solis (caurumos)",
   "default": 0,
   "x-resetOnPreset": true
  },
  "wallThickness": {
   "type": "number",
   "minimum": 2.4,
   "maximum": 8,
   "x-step": 0.4,
   "title": "Wall thickness",
   "description": "Thickness of the hook section, back plate, deck and walls; 4 mm suits light loads, use 6 mm or more for heavy or deep parts.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Sienas biezums",
   "default": 4,
   "x-resetOnPreset": true
  },
  "pegClearanceMm": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 1,
   "x-step": 0.05,
   "title": "Fit clearance",
   "description": "How much smaller the peg is than the hole, on diameter; a tab keeps at least 0.2 mm. Print the fit test first and change it in 0.05 mm steps.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Pielaide",
   "default": 0.5,
   "x-resetOnPreset": true
  },
  "rootFilletMm": {
   "type": "number",
   "minimum": 0,
   "maximum": 4,
   "x-step": 0.5,
   "title": "Root fillet",
   "description": "Radius that rounds the inside corners where the arm meets the spine, where the barb bends and where a flat clip's arms meet its back.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "core.fillet",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Pametnes noapaļojums",
   "default": 2,
   "x-resetOnPreset": true
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG",
    "asa": "ASA",
    "pla": "PLA (fit check only)"
   },
   "title": "Print material",
   "description": "Changes the estimated mass and the warnings; the shape stays the same.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Drukas materiāls",
   "default": "petg"
  },
  "resolution": {
   "type": "integer",
   "minimum": 12,
   "maximum": 64,
   "multipleOf": 4,
   "title": "Resolution",
   "description": "Segments around each peg and cup; higher is smoother and larger.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "core.resolution",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Izšķirtspēja",
   "default": 24
  },
  "includeFitTest": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Add a fit test strip",
   "description": "Adds a small strip with the same pegs or tab to check the fit before printing the full part.",
   "x-group": "print",
   "x-agentSafe": true,
   "x-label-lv": "Pievienot pielaides testa sloksni",
   "default": 0
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour (preview only)",
   "description": "Colour shown in the 3D preview and 3MF export.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Krāsa (priekšskatījumam)",
   "default": "#2563eb",
   "x-resetOnPreset": true
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "petg-filament-1kg",
   "title": "PETG Filament 1.75 mm (1 kg) — heat-resistant & durable",
   "why": "Stronger and more heat-resistant than PLA for molds, jigs and outdoor parts.",
   "url": "https://paramlet.com/go/petg-filament-1kg?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "id": "pla-matte-filament",
   "title": "Matte PLA Filament 1.75 mm (1 kg) — smooth surface finish",
   "why": "Clean matte finish for decorative vases, ornaments and candle holders.",
   "url": "https://paramlet.com/go/pla-matte-filament?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "id": "deburring-tool-set",
   "title": "Precision Deburring Tool with 10 HSS Blades",
   "why": "Cleans brim edges and drill-hole chamfers in seconds.",
   "url": "https://paramlet.com/go/deburring-tool-set?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}