{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/plant-label/schema.json",
 "title": "Plant label — parameters",
 "description": "Make garden and herb plant labels with your own names and sow dates: stakes, seed-tray strips, tree tags or pot-rim clips, two colours, 12 on one plate. 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": "plant-label",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "text",
   "title": "Text"
  },
  {
   "id": "label",
   "title": "Label and mount"
  },
  {
   "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": "herb-pot-marker",
    "title": "Herb pot marker",
    "description": "Short 60 mm stake for kitchen herbs and house plants, white letters on green.",
    "values": {
     "stakeLength": 60
    }
   },
   {
    "id": "vegetable-garden-stake",
    "title": "Vegetable garden stake with sow date",
    "description": "Long 150 mm stake for raised beds with a sow-date line, arched top.",
    "values": {
     "line2": "Sown 04.2027",
     "stakeLength": 150,
     "stakeWidth": 14,
     "letterHeight": 10,
     "headShape": "arch",
     "baseColor": "#f4f1e6",
     "textColor": "#2f5d2c"
    }
   },
   {
    "id": "seed-tray-label",
    "title": "Seed tray label",
    "description": "Narrow 10 mm strip with the name along it for seed trays and cell packs.",
    "values": {
     "mount": "strip",
     "letterHeight": 6,
     "margin": 2,
     "thickness": 1.6,
     "stakeLength": 40,
     "textDepth": 0.6,
     "baseColor": "#ffffff",
     "textColor": "#2f5d2c"
    }
   },
   {
    "id": "hanging-tree-tag",
    "title": "Hanging tree and shrub tag",
    "description": "Arched tag with a hole for wire, for fruit trees, roses and shrubs.",
    "values": {
     "line2": "Planted 2027",
     "mount": "hang",
     "headShape": "arch",
     "holeDiameter": 4,
     "baseColor": "#6b4a2b",
     "textColor": "#f3e3b5"
    }
   },
   {
    "id": "pot-rim-clip",
    "title": "Pot rim clip label",
    "description": "Leaf-shaped label that clips onto a 2.4 mm pot rim, like the flower-pot generator makes.",
    "values": {
     "mount": "rim",
     "headShape": "leaf",
     "rimThickness": 2.4,
     "baseColor": "#7fbf4d",
     "textColor": "#ffffff"
    }
   },
   {
    "id": "herb-garden-set",
    "title": "Herb garden label set (12 on one plate)",
    "description": "Twelve herb markers on one 220 mm plate: type your own list of names.",
    "values": {
     "baseColor": "#0e7490",
     "batch": "Basil, Thyme, Rosemary, Mint, Parsley, Chives, Oregano, Sage, Dill, Coriander, Lavender, Lemon balm",
     "stakeLength": 50,
     "letterHeight": 7,
     "margin": 2.5
    }
   },
   {
    "id": "inlaid-flush-label",
    "title": "Flush two-colour label (soil does not stick)",
    "description": "Letters inlaid flush with the surface: wipes clean, nothing to break off.",
    "values": {
     "textStyle": "inlay",
     "textDepth": 0.8,
     "thickness": 2.4,
     "stakeLength": 100,
     "font": "varela",
     "baseColor": "#1f1f1f",
     "textColor": "#f2f2f2"
    }
   }
  ]
 },
 "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": {
  "line1": {
   "type": "string",
   "maxLength": 16,
   "title": "Plant name",
   "description": "Up to 16 characters.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Auga nosaukums",
   "default": "Basil"
  },
  "line2": {
   "type": "string",
   "maxLength": 20,
   "title": "Second line (optional)",
   "description": "Variety or sow date, e.g. \"Sown 03.2027\". Also used on every batch label that has no second line of its own.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Otrā rinda (nav obligāta)",
   "default": "",
   "x-resetOnPreset": true
  },
  "batch": {
   "type": "string",
   "maxLength": 400,
   "title": "Batch: many names",
   "description": "Names separated by commas make one plate with a label each (up to 12). \"Tomato | Cherry\" gives that label its own second line. Leave empty for one label.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Partija: daudz nosaukumu",
   "default": "",
   "x-resetOnPreset": true
  },
  "font": {
   "type": "string",
   "enum": [
    "lilita",
    "pacifico",
    "varela",
    "barlow"
   ],
   "x-enumTitles": {
    "lilita": "Bold rounded (Lilita One)",
    "pacifico": "Script, joined letters (Pacifico)",
    "varela": "Clean rounded (Varela Round)",
    "barlow": "Narrow, for long text (Barlow Condensed)"
   },
   "title": "Font",
   "description": "All fonts are free (SIL Open Font License).",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Fonts",
   "default": "lilita",
   "x-resetOnPreset": true
  },
  "letterHeight": {
   "type": "number",
   "minimum": 5,
   "maximum": 15,
   "x-step": 0.5,
   "title": "Letter height",
   "description": "Height of a capital letter. 7 mm and up stays readable from standing height.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu augstums",
   "default": 8,
   "x-resetOnPreset": true
  },
  "textStyle": {
   "type": "string",
   "enum": [
    "raised",
    "inlay",
    "engraved"
   ],
   "x-enumTitles": {
    "raised": "Raised letters",
    "inlay": "Inlaid, flush (two colours)",
    "engraved": "Engraved (one colour, paint them)"
   },
   "title": "Letter style",
   "description": "Flush letters do not collect soil and wipe clean.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Burtu stils",
   "default": "raised",
   "x-resetOnPreset": true
  },
  "textDepth": {
   "type": "number",
   "minimum": 0.4,
   "maximum": 2,
   "x-step": 0.2,
   "title": "Letter depth",
   "description": "How far letters stand out (or go in). Multiples of the layer height print cleanest.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu biezums",
   "default": 0.8,
   "x-resetOnPreset": true
  },
  "mount": {
   "type": "string",
   "enum": [
    "stake",
    "strip",
    "hang",
    "rim"
   ],
   "x-enumTitles": {
    "stake": "Stake (push into soil)",
    "strip": "Seed-tray strip (text along it)",
    "hang": "Hanging tag (trees, shrubs)",
    "rim": "Pot-rim clip"
   },
   "title": "Mount",
   "description": "The rim clip slides onto the pot wall and stands up like a little flag.",
   "x-group": "label",
   "x-agentSafe": true,
   "x-label-lv": "Stiprinājums",
   "default": "stake",
   "x-resetOnPreset": true
  },
  "headShape": {
   "type": "string",
   "enum": [
    "rounded",
    "arch",
    "leaf"
   ],
   "x-enumTitles": {
    "rounded": "Rounded rectangle",
    "arch": "Arched top",
    "leaf": "Leaf"
   },
   "title": "Label shape",
   "description": "Shape of the part with the text.",
   "x-group": "label",
   "x-visibleIf": {
    "mount": {
     "ne": "strip"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Etiķetes forma",
   "default": "rounded",
   "x-resetOnPreset": true
  },
  "margin": {
   "type": "number",
   "minimum": 1,
   "maximum": 8,
   "x-step": 0.5,
   "title": "Border round the text",
   "description": "Width of the plate around the letters.",
   "x-group": "label",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Mala ap tekstu",
   "default": 3,
   "x-resetOnPreset": true
  },
  "thickness": {
   "type": "number",
   "minimum": 1.6,
   "maximum": 4,
   "x-step": 0.2,
   "title": "Thickness",
   "description": "Plate and stake thickness. 2.4 mm stakes push into garden soil; 1.6 mm is enough for seed trays.",
   "x-group": "label",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Biezums",
   "default": 2.4,
   "x-resetOnPreset": true
  },
  "stakeLength": {
   "type": "number",
   "minimum": 20,
   "maximum": 200,
   "multipleOf": 5,
   "title": "Stake length",
   "description": "The part past the text that goes into the soil, tip included. Pots 50–80 mm, garden beds 120–150 mm.",
   "x-group": "label",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": [
     "stake",
     "strip"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Mietiņa garums",
   "default": 80,
   "x-resetOnPreset": true
  },
  "stakeWidth": {
   "type": "number",
   "minimum": 6,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Stake width",
   "description": "Wider stakes stand firmer in loose soil.",
   "x-group": "label",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": "stake"
   },
   "x-agentSafe": true,
   "x-label-lv": "Mietiņa platums",
   "default": 12,
   "x-resetOnPreset": true
  },
  "stakeRib": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Stiffening rib",
   "description": "A ridge along the stake makes it several times stiffer, so it does not bend when pushed into firm soil.",
   "x-group": "label",
   "x-visibleIf": {
    "mount": "stake"
   },
   "x-agentSafe": true,
   "x-label-lv": "Stiprinošā riba",
   "default": 1,
   "x-resetOnPreset": true
  },
  "holeDiameter": {
   "type": "number",
   "minimum": 3,
   "maximum": 8,
   "x-step": 0.5,
   "title": "Hole diameter",
   "description": "For wire, string or a cable tie. Leave the loop loose so the branch can grow.",
   "x-group": "label",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": "hang"
   },
   "x-agentSafe": true,
   "x-label-lv": "Cauruma diametrs",
   "default": 4,
   "x-resetOnPreset": true
  },
  "rimThickness": {
   "type": "number",
   "minimum": 1,
   "maximum": 8,
   "x-step": 0.1,
   "title": "Pot wall thickness",
   "description": "Measure the wall at the rim. Plastic nursery pots ~1 mm, printed pots 2–3 mm, clay pots 6–8 mm.",
   "x-group": "label",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": "rim"
   },
   "x-agentSafe": true,
   "x-label-lv": "Poda sienas biezums",
   "default": 2.4,
   "x-resetOnPreset": true
  },
  "clipDepth": {
   "type": "number",
   "minimum": 8,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Clip depth",
   "description": "How far the clip reaches down over the rim.",
   "x-group": "label",
   "x-unit": "mm",
   "x-visibleIf": {
    "mount": "rim"
   },
   "x-agentSafe": true,
   "x-label-lv": "Klipa dziļums",
   "default": 15,
   "x-resetOnPreset": true
  },
  "colorMode": {
   "type": "string",
   "enum": [
    "multi",
    "swap",
    "single"
   ],
   "x-enumTitles": {
    "multi": "Two colours (AMS / multi-material)",
    "swap": "One filament change (any printer)",
    "single": "One colour"
   },
   "title": "Colour mode",
   "description": "A filament change at the top of the plate makes raised letters a second colour on any printer.",
   "x-group": "colour",
   "x-agentSafe": true,
   "x-label-lv": "Krāsu režīms",
   "default": "multi",
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Label colour",
   "description": "Preview and the 3MF filament colour of the label.",
   "x-group": "colour",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Etiķetes krāsa",
   "default": "#3f7d3a",
   "x-resetOnPreset": true
  },
  "textColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Letter colour",
   "description": "Pick a strong contrast: white or yellow on green, black on white.",
   "x-group": "colour",
   "x-visibleIf": {
    "colorMode": [
     "multi",
     "swap"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Burtu krāsa",
   "default": "#ffffff",
   "x-resetOnPreset": true
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG (outdoors, recommended)",
    "asa": "ASA (full sun, UV-stable)",
    "pla": "PLA (indoors, one season)"
   },
   "title": "Print material",
   "description": "PLA fades and goes brittle in sun and wet soil; PETG or ASA last for years.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Drukas materiāls",
   "default": "petg",
   "x-resetOnPreset": true
  },
  "bedSize": {
   "type": "number",
   "minimum": 150,
   "maximum": 350,
   "multipleOf": 5,
   "title": "Bed size",
   "description": "A batch is laid out to fit a square bed of this size.",
   "x-group": "print",
   "x-unit": "mm",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Drukas galda izmērs",
   "default": 220,
   "x-resetOnPreset": true
  },
  "curveDetail": {
   "type": "integer",
   "minimum": 2,
   "maximum": 12,
   "multipleOf": 1,
   "title": "Curve detail",
   "description": "Segments per letter curve; higher is smoother and larger.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "core.resolution",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Liekumu detalizācija",
   "default": 6
  }
 },
 "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)"
  }
 ]
}