{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/thumbscrew-knob/schema.json",
 "title": "Thumbscrew and knob — parameters",
 "description": "Print knurled thumbscrews, star clamping knobs and wing knobs that press-fit a standard hex bolt head or nut, M3–M12 and 1/4\"-20, sized to your printer. 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": "thumbscrew-knob",
 "x-toolVersion": "1.1.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "bolt",
   "title": "Bolt or nut"
  },
  {
   "id": "knob",
   "title": "Knob"
  },
  {
   "id": "colour",
   "title": "Colours"
  },
  {
   "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": "m3-knurled-thumbscrew",
    "title": "M3 knurled thumbscrew",
    "description": "Small thumbscrew for printer panels, enclosures and electronics cases.",
    "values": {
     "bodyColor": "#e85d22",
     "thread": "M3",
     "capture": "head",
     "style": "knurled",
     "knobDiameter": 14,
     "knobHeight": 8,
     "reach": 8,
     "gripColor": "#f4efe6"
    }
   },
   {
    "id": "m5-gopro-thumbscrew",
    "title": "M5 thumbscrew for GoPro-style mounts",
    "description": "Knurled knob for the M5 bolt through action-camera mount fingers.",
    "values": {
     "colorMode": "multi",
     "bodyColor": "#2563eb",
     "gripColor": "#f2c14e",
     "thread": "M5",
     "capture": "head",
     "style": "knurled",
     "knobDiameter": 20,
     "knobHeight": 10,
     "reach": 22
    }
   },
   {
    "id": "m6-star-knob",
    "title": "M6 star knob for jigs and clamps",
    "description": "Five-lobe clamping knob on an M6 bolt: router fences, drill guides, hold-downs.",
    "values": {
     "colorMode": "multi",
     "bodyColor": "#15803d",
     "gripColor": "#ffffff",
     "thread": "M6",
     "capture": "head",
     "style": "star",
     "lobes": 5,
     "knobDiameter": 34,
     "knobHeight": 14,
     "reach": 25
    }
   },
   {
    "id": "m8-star-knob-nut",
    "title": "M8 star knob for threaded rod",
    "description": "Captures an M8 nut: screws onto threaded rod or a carriage bolt for woodworking fences.",
    "values": {
     "bodyColor": "#d97706",
     "thread": "M8",
     "capture": "nut",
     "style": "star",
     "lobes": 6,
     "knobDiameter": 44,
     "knobHeight": 18,
     "reach": 30,
     "throughHole": true,
     "gripColor": "#fbbf24"
    }
   },
   {
    "id": "m4-low-profile-nut",
    "title": "M4 low-profile knurled nut",
    "description": "Flat knurled nut knob for lids and access panels.",
    "values": {
     "bodyColor": "#0f766e",
     "thread": "M4",
     "capture": "nut",
     "style": "knurled",
     "knobDiameter": 18,
     "knobHeight": 7,
     "reach": 10,
     "washerFace": false,
     "gripColor": "#bae6fd"
    }
   },
   {
    "id": "camera-quarter-inch-knob",
    "title": "1/4\"-20 camera and tripod knob",
    "description": "Wing knob for a 1/4\"-20 bolt: camera plates, light stands and tripod heads.",
    "values": {
     "bodyColor": "#b91c1c",
     "thread": "UNC1/4",
     "capture": "head",
     "style": "wing",
     "knobDiameter": 36,
     "knobHeight": 14,
     "reach": 10,
     "gripColor": "#fde68a"
    }
   },
   {
    "id": "m10-heavy-star-knob",
    "title": "M10 heavy clamping knob",
    "description": "Big six-lobe knob for M10 clamps and machine fixtures.",
    "values": {
     "colorMode": "multi",
     "bodyColor": "#7c3aed",
     "gripColor": "#fed7aa",
     "thread": "M10",
     "capture": "head",
     "style": "star",
     "lobes": 6,
     "knobDiameter": 54,
     "knobHeight": 22,
     "reach": 35
    }
   }
  ]
 },
 "x-coreParams": {
  "exportFormat": {
   "type": "string",
   "title": "File format",
   "description": "3mf = 3MF (mm); 3mf_prusa = 3MF for PrusaSlicer (mm, colour parts as volumes); stl = STL files in a zip (mm)",
   "x-group": "download",
   "x-role": "core.exportFormat",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "3mf",
    "3mf_prusa",
    "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": {
  "thread": {
   "type": "string",
   "enum": [
    "M3",
    "M4",
    "M5",
    "M6",
    "M8",
    "M10",
    "M12",
    "UNC1/4"
   ],
   "x-enumTitles": {
    "M3": "M3",
    "M4": "M4",
    "M5": "M5",
    "M6": "M6",
    "M8": "M8",
    "M10": "M10",
    "M12": "M12",
    "UNC1/4": "1/4\"-20 (camera, tripod)"
   },
   "title": "Thread size",
   "description": "Standard ISO hex bolts and nuts; 1/4\"-20 is the camera and tripod thread.",
   "x-group": "bolt",
   "x-agentSafe": true,
   "x-label-lv": "Vītnes izmērs",
   "default": "M6",
   "x-resetOnPreset": true
  },
  "capture": {
   "type": "string",
   "enum": [
    "head",
    "nut"
   ],
   "x-enumTitles": {
    "head": "Bolt head (thumbscrew)",
    "nut": "Nut (knob on a stud)"
   },
   "title": "What it holds",
   "description": "Head: the knob turns a bolt. Nut: the knob screws onto a bolt or threaded rod.",
   "x-group": "bolt",
   "x-agentSafe": true,
   "x-label-lv": "Ko tas tur",
   "default": "head",
   "x-resetOnPreset": true
  },
  "hexClearance": {
   "type": "number",
   "minimum": 0,
   "maximum": 0.4,
   "x-step": 0.05,
   "title": "Hex clearance (per side)",
   "description": "0.1–0.2 mm gives a press fit on most printers. Not sure? Print the fit coupon.",
   "x-group": "bolt",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Sešstūra pielaide (katrā pusē)",
   "default": 0.15
  },
  "reach": {
   "type": "number",
   "minimum": 2,
   "maximum": 100,
   "multipleOf": 1,
   "title": "Bolt sticks out",
   "description": "How far the bolt should reach past the knob; sets the bolt length shown in the panel.",
   "x-group": "bolt",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Skrūve izvirzās",
   "default": 20,
   "x-resetOnPreset": true
  },
  "fitCoupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Print the hex fit coupon instead",
   "description": "Five pockets from 0 to 0.4 mm clearance to find the press fit for your printer.",
   "x-group": "bolt",
   "x-agentSafe": true,
   "x-label-lv": "Drukāt sešstūra pielaikošanas plāksni",
   "default": 0
  },
  "style": {
   "type": "string",
   "enum": [
    "knurled",
    "star",
    "wing"
   ],
   "x-enumTitles": {
    "knurled": "Knurled thumbscrew",
    "star": "Star (clamping) knob",
    "wing": "Wing knob"
   },
   "title": "Style",
   "description": "Star and wing knobs give more torque for clamps and jigs.",
   "x-group": "knob",
   "x-agentSafe": true,
   "x-label-lv": "Stils",
   "default": "knurled",
   "x-resetOnPreset": true
  },
  "lobes": {
   "type": "integer",
   "minimum": 3,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Lobes",
   "description": "Number of star points.",
   "x-group": "knob",
   "x-unit": "count",
   "x-visibleIf": {
    "style": "star"
   },
   "x-agentSafe": true,
   "x-label-lv": "Stari",
   "default": 5,
   "x-resetOnPreset": true
  },
  "gripTexture": {
   "type": "string",
   "enum": [
    "straight",
    "knurl",
    "ribs",
    "diamond",
    "hex",
    "waves",
    "hammered",
    "basketweave",
    "folk"
   ],
   "x-enumTitles": {
    "straight": "Straight ridges (classic)",
    "knurl": "3D diamond knurl",
    "ribs": "Fluted ribs",
    "diamond": "Diamond lattice",
    "hex": "Honeycomb",
    "waves": "Flowing waves",
    "hammered": "Hammered / slate",
    "basketweave": "Basketweave",
    "folk": "Latvian folk motif"
   },
   "title": "Grip texture",
   "description": "Classic straight ridges or 3D carved grip textures around the knurled knob; prints support-free.",
   "x-group": "knob",
   "x-visibleIf": {
    "style": "knurled"
   },
   "x-agentSafe": true,
   "x-label-lv": "Satvēriena faktūra",
   "default": "straight",
   "x-resetOnPreset": true
  },
  "textureDepth": {
   "type": "number",
   "minimum": 0.3,
   "maximum": 1,
   "x-step": 0.1,
   "title": "Texture depth",
   "description": "Radial grip relief depth in millimetres (0.7 mm gives firm finger traction).",
   "x-group": "knob",
   "x-unit": "mm",
   "x-visibleIf": {
    "all": [
     {
      "style": "knurled"
     },
     {
      "gripTexture": {
       "ne": "straight"
      }
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Faktūras dziļums",
   "default": 0.7,
   "x-resetOnPreset": true
  },
  "textureCount": {
   "type": "integer",
   "minimum": 8,
   "maximum": 32,
   "multipleOf": 2,
   "title": "Pattern repeats",
   "description": "Number of pattern repeats around the knob.",
   "x-group": "knob",
   "x-unit": "count",
   "x-visibleIf": {
    "all": [
     {
      "style": "knurled"
     },
     {
      "gripTexture": {
       "ne": "straight"
      }
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Raksta atkārtojumi",
   "default": 18,
   "x-resetOnPreset": true
  },
  "knobDiameter": {
   "type": "number",
   "minimum": 10,
   "maximum": 70,
   "multipleOf": 1,
   "title": "Diameter",
   "description": "Wider knobs turn with more force; raised automatically if the hex needs room.",
   "x-group": "knob",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Diametrs",
   "default": 30,
   "x-resetOnPreset": true
  },
  "knobHeight": {
   "type": "number",
   "minimum": 6,
   "maximum": 30,
   "x-step": 0.5,
   "title": "Height",
   "description": "Includes the washer face.",
   "x-group": "knob",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Augstums",
   "default": 14,
   "x-resetOnPreset": true
  },
  "washerFace": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Washer face",
   "description": "A small raised ring underneath so only it touches the clamped part.",
   "x-group": "knob",
   "x-agentSafe": true,
   "x-label-lv": "Paplāksnes virsma",
   "default": 1,
   "x-resetOnPreset": true
  },
  "throughHole": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Hole all the way through",
   "description": "Turn off for a blind nut knob that covers the end of the stud.",
   "x-group": "knob",
   "x-agentSafe": true,
   "x-label-lv": "Caurums cauri",
   "default": 1,
   "x-resetOnPreset": true
  },
  "colorMode": {
   "type": "string",
   "enum": [
    "single",
    "multi"
   ],
   "x-enumTitles": {
    "single": "One colour",
    "multi": "Two colours: grip ring + core (AMS)"
   },
   "title": "Colour mode",
   "description": "Two colours make knobs easy to find and tell apart on a jig.",
   "x-group": "colour",
   "x-agentSafe": true,
   "x-label-lv": "Krāsu režīms",
   "default": "single",
   "x-resetOnPreset": true
  },
  "bodyColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Core colour",
   "description": "Preview and 3MF colour of the core.",
   "x-group": "colour",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Serdes krāsa",
   "default": "#3a6fd8",
   "x-resetOnPreset": true
  },
  "gripColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Grip colour",
   "description": "Colour of the outer grip ring.",
   "x-group": "colour",
   "x-visibleIf": {
    "colorMode": "multi"
   },
   "x-agentSafe": true,
   "x-label-lv": "Satvēriena krāsa",
   "default": "#ff5b1f",
   "x-resetOnPreset": true
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "petg",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG (tough, recommended)",
    "pla": "PLA"
   },
   "title": "Print material",
   "description": "PETG takes torque without cracking.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Drukas materiāls",
   "default": "petg"
  }
 },
 "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": "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)"
  }
 ]
}