{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/router-corner-jig/schema.json",
 "title": "Router corner & template jig — parameters",
 "description": "Design 3D-printable woodworking router templates: 4-in-1 radius quads, fenced corner jigs, 45° chamfers, cove corners, drawer finger pulls and handle slots. 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": "router-corner-jig",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "type",
   "title": "Template type"
  },
  {
   "id": "profile",
   "title": "Cut profile & dimensions"
  },
  {
   "id": "plate",
   "title": "Plate, fence & clamping"
  },
  {
   "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": "quad-r10-25",
    "title": "4-in-1 Radius Quad (R10/15/20/25)",
    "description": "Compact four-corner router template with R10, R15, R20 and R25 radii plus registration pin holes and center grip.",
    "values": {
     "jigType": "quad-radius",
     "r1": 10,
     "r2": 15,
     "r3": 20,
     "r4": 25,
     "plateThickness": 8,
     "clampHole": true
    }
   },
   {
    "id": "quad-r30-50",
    "title": "Large 4-in-1 Quad (R30/35/40/50)",
    "description": "Large-radius quad plate for dining tables, desktops and coffee tables (R30, R35, R40, R50).",
    "values": {
     "jigType": "quad-radius",
     "r1": 30,
     "r2": 35,
     "r3": 40,
     "r4": 50,
     "plateThickness": 9,
     "clampHole": true
    }
   },
   {
    "id": "single-r20-fence",
    "title": "Fenced Corner R20",
    "description": "Dedicated R20 corner radius jig with full L-shaped registration fence and corner dust-relief notch.",
    "values": {
     "jigType": "single-radius",
     "radius": 20,
     "plateThickness": 8,
     "fenceDrop": 10,
     "fenceThickness": 8,
     "clampHole": true
    }
   },
   {
    "id": "single-r40-table",
    "title": "Tabletop Corner R40",
    "description": "Heavy-duty R40 tabletop corner rounding jig with tall 14 mm fence for thick butcher-block slabs.",
    "values": {
     "jigType": "single-radius",
     "radius": 40,
     "plateThickness": 10,
     "fenceDrop": 14,
     "fenceThickness": 10,
     "clampHole": true
    }
   },
   {
    "id": "chamfer-25-fence",
    "title": "45° Corner Chamfer (25 mm)",
    "description": "Fenced 45° corner miter/chamfer template for crisp modern box lids, cutting boards and trays.",
    "values": {
     "jigType": "chamfer-corner",
     "chamferSize": 25,
     "plateThickness": 8,
     "fenceDrop": 10,
     "fenceThickness": 8,
     "clampHole": true
    }
   },
   {
    "id": "chamfer-45-heavy",
    "title": "Deep 45° Chamfer (45 mm)",
    "description": "Large 45 mm 45-degree corner chamfer template for architectural furniture tops and shelving.",
    "values": {
     "jigType": "chamfer-corner",
     "chamferSize": 45,
     "plateThickness": 10,
     "fenceDrop": 12,
     "fenceThickness": 10,
     "clampHole": true
    }
   },
   {
    "id": "cove-corner-r25",
    "title": "Concave Cove Corner (R25)",
    "description": "Decorative inward-curved scalloped corner jig for classic tabletops, picture frames and plaques.",
    "values": {
     "jigType": "cove-corner",
     "radius": 25,
     "plateThickness": 8,
     "fenceDrop": 10,
     "fenceThickness": 8,
     "clampHole": true
    }
   },
   {
    "id": "finger-pull-drawer",
    "title": "Drawer Finger-Pull Scoop (80 mm)",
    "description": "Smooth semicircular finger-pull router template with straight registration fence for handleless drawers.",
    "values": {
     "jigType": "finger-pull",
     "cutoutWidth": 80,
     "cutoutDepth": 24,
     "plateThickness": 8,
     "fenceDrop": 10,
     "fenceThickness": 8,
     "clampHole": true
    }
   },
   {
    "id": "tray-handle-slot",
    "title": "Serving Tray Handle (110 × 28 mm)",
    "description": "Stadium-shaped recessed carrying-handle router template with 20 mm setback fence for serving trays and crates.",
    "values": {
     "jigType": "handle-slot",
     "cutoutWidth": 110,
     "cutoutDepth": 28,
     "slotSetback": 20,
     "plateThickness": 9,
     "fenceDrop": 12,
     "fenceThickness": 8,
     "clampHole": true
    }
   },
   {
    "id": "desk-grommet-slot",
    "title": "Desk Cable Slot (120 × 36 mm)",
    "description": "Wide pill-shaped router template with 35 mm edge setback for clean desktop cable pass-through cutouts.",
    "values": {
     "jigType": "handle-slot",
     "cutoutWidth": 120,
     "cutoutDepth": 36,
     "slotSetback": 35,
     "plateThickness": 9,
     "fenceDrop": 12,
     "fenceThickness": 8,
     "clampHole": true
    }
   }
  ]
 },
 "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": {
  "jigType": {
   "type": "string",
   "enum": [
    "quad-radius",
    "single-radius",
    "chamfer-corner",
    "cove-corner",
    "finger-pull",
    "handle-slot"
   ],
   "x-enumTitles": {
    "quad-radius": "4-in-1 radius quad plate",
    "single-radius": "Single corner radius + fence",
    "chamfer-corner": "45° corner chamfer + fence",
    "cove-corner": "Concave cove corner + fence",
    "finger-pull": "Drawer finger-pull scoop",
    "handle-slot": "Handle / cable slot template"
   },
   "title": "Jig type",
   "description": "Choose the router template family; all jigs print flat upside-down without supports.",
   "x-group": "type",
   "x-agentSafe": true,
   "x-label-lv": "Šablona tips",
   "default": "quad-radius",
   "x-resetOnPreset": true
  },
  "radius": {
   "type": "number",
   "minimum": 5,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Corner radius (R)",
   "description": "Finished corner radius on the workpiece.",
   "x-group": "profile",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigType": [
     "single-radius",
     "cove-corner"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Stūra rādiuss (R)",
   "default": 20,
   "x-resetOnPreset": true
  },
  "chamferSize": {
   "type": "number",
   "minimum": 8,
   "maximum": 60,
   "multipleOf": 1,
   "title": "45° chamfer leg",
   "description": "Distance clipped off each side of the 90° corner at 45 degrees.",
   "x-group": "profile",
   "x-unit": "mm",
   "x-role": "core.chamfer",
   "x-visibleIf": {
    "jigType": "chamfer-corner"
   },
   "x-agentSafe": true,
   "x-label-lv": "45° fāzes platums",
   "default": 25,
   "x-resetOnPreset": true
  },
  "r1": {
   "type": "number",
   "minimum": 4,
   "maximum": 55,
   "multipleOf": 1,
   "title": "Corner 1 radius",
   "description": "Radius on corner 1 of the 4-in-1 quad plate.",
   "x-group": "profile",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigType": "quad-radius"
   },
   "x-agentSafe": true,
   "x-label-lv": "1. stūra rādiuss",
   "default": 10,
   "x-resetOnPreset": true
  },
  "r2": {
   "type": "number",
   "minimum": 4,
   "maximum": 55,
   "multipleOf": 1,
   "title": "Corner 2 radius",
   "description": "Radius on corner 2 of the 4-in-1 quad plate.",
   "x-group": "profile",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigType": "quad-radius"
   },
   "x-agentSafe": true,
   "x-label-lv": "2. stūra rādiuss",
   "default": 15,
   "x-resetOnPreset": true
  },
  "r3": {
   "type": "number",
   "minimum": 4,
   "maximum": 55,
   "multipleOf": 1,
   "title": "Corner 3 radius",
   "description": "Radius on corner 3 of the 4-in-1 quad plate.",
   "x-group": "profile",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigType": "quad-radius"
   },
   "x-agentSafe": true,
   "x-label-lv": "3. stūra rādiuss",
   "default": 20,
   "x-resetOnPreset": true
  },
  "r4": {
   "type": "number",
   "minimum": 4,
   "maximum": 55,
   "multipleOf": 1,
   "title": "Corner 4 radius",
   "description": "Radius on corner 4 of the 4-in-1 quad plate.",
   "x-group": "profile",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigType": "quad-radius"
   },
   "x-agentSafe": true,
   "x-label-lv": "4. stūra rādiuss",
   "default": 25,
   "x-resetOnPreset": true
  },
  "cutoutWidth": {
   "type": "number",
   "minimum": 40,
   "maximum": 160,
   "multipleOf": 2,
   "title": "Cutout length",
   "description": "Width of the drawer finger-pull scoop or carrying-handle slot.",
   "x-group": "profile",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigType": [
     "finger-pull",
     "handle-slot"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Izgriezuma garums",
   "default": 100,
   "x-resetOnPreset": true
  },
  "cutoutDepth": {
   "type": "number",
   "minimum": 14,
   "maximum": 50,
   "multipleOf": 1,
   "title": "Cutout depth / width",
   "description": "How deep the finger scoop cuts into the edge, or the height of the handle slot.",
   "x-group": "profile",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigType": [
     "finger-pull",
     "handle-slot"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Izgriezuma dziļums / platums",
   "default": 26,
   "x-resetOnPreset": true
  },
  "slotSetback": {
   "type": "number",
   "minimum": 10,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Setback from edge",
   "description": "Distance from the registration fence to the nearest edge of the handle slot.",
   "x-group": "profile",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigType": "handle-slot"
   },
   "x-agentSafe": true,
   "x-label-lv": "Atkāpe no malas",
   "default": 22,
   "x-resetOnPreset": true
  },
  "guideOffset": {
   "type": "number",
   "minimum": 0,
   "maximum": 6,
   "x-step": 0.2,
   "title": "Guide bushing offset (0 = bearing)",
   "description": "Leave at 0 mm for flush-trim bearing bits; set to (bushing OD - bit diameter) / 2 for guide bushings.",
   "x-group": "profile",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Vadotnes nobīde (0 = gultnis)",
   "default": 0,
   "x-resetOnPreset": true
  },
  "plateThickness": {
   "type": "number",
   "minimum": 5,
   "maximum": 16,
   "x-step": 0.5,
   "title": "Template plate thickness",
   "description": "Thickness of the bearing-riding plate; 8–10 mm gives a generous track for flush-trim bearings.",
   "x-group": "plate",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Plāksnes biezums",
   "default": 8
  },
  "fenceDrop": {
   "type": "number",
   "minimum": 4,
   "maximum": 20,
   "multipleOf": 1,
   "title": "Registration fence height",
   "description": "Height of the alignment lip that presses flush against the workpiece edges.",
   "x-group": "plate",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigType": {
     "ne": "quad-radius"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Atbalsta maliņas augstums",
   "default": 10
  },
  "fenceThickness": {
   "type": "number",
   "minimum": 5,
   "maximum": 16,
   "multipleOf": 1,
   "title": "Registration fence thickness",
   "description": "Wall thickness of the registration lip for rigidity under clamping.",
   "x-group": "plate",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigType": {
     "ne": "quad-radius"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Atbalsta maliņas biezums",
   "default": 8
  },
  "clampHole": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Clamping / hang hole",
   "description": "Adds a recessed finger-grip / pegboard hanging hole through the template body.",
   "x-group": "plate",
   "x-agentSafe": true,
   "x-label-lv": "Fiksācijas / pakarināšanas caurums",
   "default": 1
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "abs",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG (recommended)",
    "asa": "ASA (heat resistant)",
    "abs": "ABS",
    "pla": "PLA (light use only)"
   },
   "title": "Print material",
   "description": "PETG or ASA resists router-bearing friction heat better than PLA.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Drukas materiāls",
   "default": "petg"
  },
  "resolution": {
   "type": "integer",
   "minimum": 24,
   "maximum": 96,
   "multipleOf": 8,
   "title": "Curve resolution",
   "description": "Segments along curved arcs; higher gives smoother routed curves.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "core.resolution",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Līkņu izšķirtspēja",
   "default": 48
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Preview colour",
   "description": "Only changes the 3D preview.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Priekšskata krāsa",
   "default": "#2b6cb0"
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "double-sided-woodworking-tape",
   "title": "Woodworking Double-Sided Template Tape (25 mm × 33 m)",
   "why": "Holds router templates rock-solid without clamps getting in the way.",
   "url": "https://paramlet.com/go/double-sided-woodworking-tape?src=agent",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "id": "flush-trim-router-bit",
   "title": "Carbide Flush-Trim Router Bit with Top Bearing (8 mm Shank)",
   "why": "Bearing rides smoothly along printed corner-radius and handle templates.",
   "url": "https://paramlet.com/go/flush-trim-router-bit?src=agent",
   "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",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "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",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}