{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/airtag-holder/schema.json",
 "title": "AirTag & tracker holder — parameters",
 "description": "3D-print a snap-fit AirTag or tracker holder: keyring, dog or cat collar clip, bike mount, luggage tag or wallet card, with an optional name. 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": "airtag-holder",
 "x-toolVersion": "1.2.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "tracker",
   "title": "Tracker & pocket"
  },
  {
   "id": "mount",
   "title": "Mount style"
  },
  {
   "id": "label",
   "title": "Name or text"
  },
  {
   "id": "colour",
   "title": "Texture & colours"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "measure-your-own",
    "title": "Measure your own tracker",
    "description": "Generic round or square tracker holder with editable diameter, thickness, and 6 mounting styles.",
    "values": {
     "trackerShape": "round",
     "trackerDia": 32,
     "trackerThickness": 8,
     "variant": "keyring",
     "bodyColor": "#c85a32",
     "textColor": "#f4efe6"
    }
   },
   {
    "id": "fits-airtag",
    "title": "Fits Apple AirTag",
    "description": "Official Apple specs: Ø31.9 × 8.0 mm, 11.8 g (identical for 1st and 2nd gen). Not affiliated with or endorsed by Apple.",
    "values": {
     "trackerShape": "round",
     "trackerDia": 31.9,
     "trackerThickness": 8,
     "variant": "bike-bottle-cage",
     "bodyColor": "#2a7f76",
     "textColor": "#f2c14e"
    }
   },
   {
    "id": "fits-ugreen-finetrack",
    "title": "Fits UGREEN FineTrack Finder",
    "description": "Listing dims 36 × 36 × 7.0 mm — measure to confirm before printing. Not affiliated with or endorsed by UGREEN.",
    "values": {
     "trackerShape": "square",
     "trackerDia": 36,
     "trackerThickness": 7,
     "variant": "keyring",
     "bodyColor": "#d4a024",
     "textColor": "#ffffff"
    }
   },
   {
    "id": "airtag-keyring",
    "title": "AirTag keyring",
    "description": "Slim loop for keys and a bag zip: 37 mm holder, 11 mm thick, with the chime and battery opening.",
    "values": {
     "trackerShape": "round",
     "trackerDia": 31.9,
     "trackerThickness": 8,
     "variant": "keyring",
     "strapWidth": 20,
     "colorMode": "single",
     "bodyColor": "#3b5b8c",
     "textColor": "#fbbf24"
    }
   },
   {
    "id": "dog-collar-20mm",
    "title": "AirTag holder for dog collar (20 mm)",
    "description": "Slides flat onto a 20 mm dog collar; 25 mm collar? set the strap width. Add the pet name in two colours.",
    "values": {
     "trackerShape": "round",
     "trackerDia": 31.9,
     "trackerThickness": 8,
     "variant": "collar-clip",
     "strapWidth": 20,
     "colorMode": "multi",
     "bodyColor": "#5b7f4b",
     "textColor": "#bae6fd"
    }
   },
   {
    "id": "cat-collar-11mm",
    "title": "AirTag holder for cat collar (10–12 mm)",
    "description": "Light clip for a 10–12 mm cat collar. Use it on a breakaway collar only, and check the fit after the first week.",
    "values": {
     "trackerShape": "round",
     "trackerDia": 31.9,
     "trackerThickness": 8,
     "variant": "collar-clip",
     "strapWidth": 11,
     "colorMode": "multi",
     "bodyColor": "#8c3b5c",
     "textColor": "#fde68a"
    }
   },
   {
    "id": "luggage-strap-tag",
    "title": "AirTag luggage and backpack strap tag",
    "description": "Hangs from a 10–32 mm suitcase handle or backpack strap, with a name or phone number in two colours.",
    "values": {
     "trackerShape": "round",
     "trackerDia": 31.9,
     "trackerThickness": 8,
     "variant": "luggage-tag",
     "strapWidth": 25,
     "colorMode": "multi",
     "bodyColor": "#d97742",
     "textColor": "#fed7aa"
    }
   },
   {
    "id": "wallet-card",
    "title": "AirTag wallet card",
    "description": "Credit-card size (85 × 54 mm) for a wallet or passport cover, with room for a phone number.",
    "values": {
     "trackerShape": "round",
     "trackerDia": 31.9,
     "trackerThickness": 8,
     "variant": "wallet-card",
     "strapWidth": 20,
     "colorMode": "multi",
     "bodyColor": "#1f6f8b",
     "textColor": "#d9f99d"
    }
   }
  ]
 },
 "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"
  },
  "massUnits": {
   "type": "string",
   "title": "Weight shown in",
   "description": "Display only: grams or ounces (1 oz = 28.3495 g). Stored values, the API and exports are always grams.",
   "x-group": "view",
   "x-role": "core.displayMassUnits",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "g",
    "oz"
   ],
   "x-enumTitles": {
    "g": "Grams",
    "oz": "Ounces"
   },
   "default": "g"
  }
 },
 "type": "object",
 "properties": {
  "trackerShape": {
   "type": "string",
   "enum": [
    "round",
    "square"
   ],
   "x-enumTitles": {
    "round": "Round puck",
    "square": "Square tile"
   },
   "title": "Tracker shape",
   "description": "Round puck (AirTag) or square tile; set the size below.",
   "x-group": "tracker",
   "x-agentSafe": true,
   "x-label-lv": "Izsekotāja forma",
   "default": "round",
   "x-resetOnPreset": true
  },
  "trackerDia": {
   "type": "number",
   "minimum": 22,
   "maximum": 55,
   "x-step": 0.1,
   "title": "Tracker diameter / width",
   "description": "Measure your tracker: 31.9 mm for Apple AirTag. The pocket gets 0.25 mm clearance all round.",
   "x-group": "tracker",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Diametrs / platums",
   "default": 31.9,
   "x-resetOnPreset": true
  },
  "trackerThickness": {
   "type": "number",
   "minimum": 4,
   "maximum": 14,
   "x-step": 0.1,
   "title": "Tracker thickness",
   "description": "8.0 mm for Apple AirTag. A thicker tracker sits higher in the holder.",
   "x-group": "tracker",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Biezums",
   "default": 8,
   "x-resetOnPreset": true
  },
  "retentionLip": {
   "type": "number",
   "minimum": 0.6,
   "maximum": 1.5,
   "x-step": 0.1,
   "title": "Retention lip (0.6–1.2 mm)",
   "description": "How far the top edge reaches over the tracker. 0.9 mm snaps in by hand; 1.2 mm holds firmer, 0.6 mm is easier in TPU.",
   "x-group": "tracker",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Fiksācijas maliņa",
   "default": 0.9
  },
  "speakerOpening": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Speaker & battery opening",
   "description": "Hole in the base under the tracker: lets the chime out and the battery door open. Turn off only on hidden mounts.",
   "x-group": "tracker",
   "x-agentSafe": true,
   "x-label-lv": "Skaļruņa un baterijas atvere",
   "default": 1
  },
  "variant": {
   "type": "string",
   "enum": [
    "keyring",
    "collar-clip",
    "bike-bottle-cage",
    "hidden-screw",
    "luggage-tag",
    "wallet-card"
   ],
   "x-enumTitles": {
    "keyring": "Keyring loop",
    "collar-clip": "Pet collar strap slots",
    "bike-bottle-cage": "Bike bottle-cage mount (64 mm)",
    "hidden-screw": "Hidden screw-down mount",
    "luggage-tag": "Luggage tag",
    "wallet-card": "Slim wallet card (85×54 mm)"
   },
   "title": "Holder variant",
   "description": "How the holder is attached. Collar, luggage and wallet holders can carry a name; bike and screw mounts stay hidden.",
   "x-group": "mount",
   "x-agentSafe": true,
   "x-label-lv": "Turētāja variants",
   "default": "keyring",
   "x-resetOnPreset": true
  },
  "strapWidth": {
   "type": "number",
   "minimum": 10,
   "maximum": 32,
   "multipleOf": 1,
   "title": "Collar / luggage strap width",
   "description": "Measure the collar or strap flat: 10–12 mm cat collars, 20–25 mm dog collars and daypack straps.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Siksnas platums",
   "default": 20,
   "x-resetOnPreset": true
  },
  "labelText": {
   "type": "string",
   "maxLength": 12,
   "title": "Text on the holder (optional)",
   "description": "Pet name, initials or a phone number, up to 12 characters, printed in capitals. Empty = no text.",
   "x-group": "label",
   "x-agentSafe": true,
   "x-label-lv": "Teksts uz turētāja (neobligāti)",
   "default": ""
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "tpu"
   ],
   "x-enumTitles": {
    "petg": "PETG (recommended)",
    "asa": "ASA (outdoors)",
    "tpu": "TPU (flexible snap)"
   },
   "title": "Filament",
   "description": "Used for the weight estimate. PETG or ASA outdoors, TPU for a soft holder.",
   "x-group": "mount",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "petg"
  },
  "wallCount": {
   "type": "integer",
   "minimum": 2,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "Walls in your slicer. 3 or more keep the retention lip strong.",
   "x-group": "mount",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Sienu skaits",
   "default": 3
  },
  "infill": {
   "type": "integer",
   "minimum": 5,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "Infill percentage; the estimate uses it for print time.",
   "x-group": "mount",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 20
  },
  "shellTexture": {
   "type": "string",
   "enum": [
    "none",
    "knurl",
    "ribs",
    "diamond",
    "hex",
    "waves",
    "hammered",
    "folk",
    "basketweave"
   ],
   "x-enumTitles": {
    "none": "Smooth (plain)",
    "knurl": "Diamond knurl",
    "ribs": "Fluted ribs",
    "diamond": "Diamond lattice",
    "hex": "Honeycomb",
    "waves": "Flowing waves",
    "hammered": "Hammered / slate",
    "folk": "Latvian folk motif",
    "basketweave": "Basketweave"
   },
   "title": "Shell texture",
   "description": "Optional tactile grip or decorative pattern around the round outer rim; prints support-free.",
   "x-group": "colour",
   "x-visibleIf": {
    "trackerShape": "round"
   },
   "x-agentSafe": true,
   "x-label-lv": "Apvalka tekstūra",
   "default": "none",
   "x-resetOnPreset": true
  },
  "textureDepth": {
   "type": "number",
   "minimum": 0.3,
   "maximum": 0.9,
   "x-step": 0.1,
   "title": "Texture depth",
   "description": "Radial relief depth on the outer rim (0.6 mm gives crisp grip without supports).",
   "x-group": "colour",
   "x-unit": "mm",
   "x-visibleIf": {
    "all": [
     {
      "trackerShape": "round"
     },
     {
      "shellTexture": {
       "ne": "none"
      }
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Tekstūras dziļums",
   "default": 0.6,
   "x-resetOnPreset": true
  },
  "textureCount": {
   "type": "integer",
   "minimum": 8,
   "maximum": 32,
   "multipleOf": 2,
   "title": "Pattern repeats",
   "description": "Number of pattern repeats around the rim.",
   "x-group": "colour",
   "x-unit": "count",
   "x-visibleIf": {
    "all": [
     {
      "trackerShape": "round"
     },
     {
      "shellTexture": {
       "ne": "none"
      }
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Raksta atkārtojumi",
   "default": 18,
   "x-resetOnPreset": true
  },
  "colorMode": {
   "type": "string",
   "enum": [
    "single",
    "multi"
   ],
   "x-enumTitles": {
    "single": "One colour",
    "multi": "Two colours: holder + text (AMS / MMU)"
   },
   "title": "Colour mode",
   "description": "Two colours print the raised text as a second filament of the same part (AMS, MMU, PrusaSlicer). Needs a text.",
   "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": "Holder colour",
   "description": "Preview and 3MF filament colour of the holder.",
   "x-group": "colour",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Turētāja krāsa",
   "default": "#c86442",
   "x-resetOnPreset": true
  },
  "textColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Text colour",
   "description": "Filament colour of the raised text. Pick a strong contrast to the holder.",
   "x-group": "colour",
   "x-visibleIf": {
    "colorMode": "multi"
   },
   "x-agentSafe": true,
   "x-label-lv": "Teksta krāsa",
   "default": "#ffffff",
   "x-resetOnPreset": true
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "airtag-2",
   "title": "Apple AirTag (2nd Generation)",
   "why": "Exact match for the Fits Apple AirTag preset (Ø31.9×8.0 mm, 11.8 g, Apple specs).",
   "url": "https://paramlet.com/go/airtag-2?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "id": "airtag-2-4pack",
   "title": "Apple AirTag (2nd Generation, 4-pack)",
   "why": "4-pack of Apple AirTag (Ø31.9×8.0 mm) for multiple holders and bike mounts.",
   "url": "https://paramlet.com/go/airtag-2-4pack?src=agent",
   "relation": "material",
   "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",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}