{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/method-feeder/schema.json",
 "title": "Method feeder generator — parameters",
 "description": "Design a flat or hybrid method feeder that hits your target weight with sealed steel or tungsten balls and a matching bait mould. 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": "method-feeder",
 "x-toolVersion": "0.1.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "type",
   "title": "Type and size"
  },
  {
   "id": "body",
   "title": "Body"
  },
  {
   "id": "ribs",
   "title": "Ribs"
  },
  {
   "id": "tube",
   "title": "Inline line tube"
  },
  {
   "id": "weight",
   "title": "Weight"
  },
  {
   "id": "mould",
   "title": "Bait mould"
  },
  {
   "id": "print",
   "title": "Printing"
  },
  {
   "id": "model",
   "title": "Model"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "flat-s-20",
    "title": "Flat S — 20 g",
    "description": "Small flat feeder for close work, 20 g target.",
    "values": {
     "variant": "flat",
     "size": "S",
     "length": 38,
     "width": 24,
     "baseHeight": 6,
     "ribCount": 3,
     "ribHeight": 6,
     "ribWidth": 1.4,
     "noseAngle": 25,
     "targetMass": 20,
     "insertMaterial": "steel"
    }
   },
   {
    "id": "flat-m-30",
    "title": "Flat M — 30 g",
    "description": "Medium flat feeder, 30 g target, the common size.",
    "values": {
     "variant": "flat",
     "size": "M",
     "length": 48,
     "width": 32,
     "baseHeight": 8,
     "ribCount": 4,
     "ribHeight": 8,
     "ribWidth": 1.6,
     "noseAngle": 25,
     "targetMass": 30,
     "insertMaterial": "steel"
    }
   },
   {
    "id": "flat-l-50",
    "title": "Flat L — 50 g",
    "description": "Large flat feeder for distance, 50 g target with steel.",
    "values": {
     "variant": "flat",
     "size": "L",
     "length": 60,
     "width": 38,
     "baseHeight": 10,
     "ribCount": 5,
     "ribHeight": 10,
     "ribWidth": 1.8,
     "noseAngle": 22,
     "targetMass": 50,
     "insertMaterial": "steel"
    }
   },
   {
    "id": "hybrid-m-30",
    "title": "Hybrid M — 30 g",
    "description": "Medium hybrid with side walls for a stable cast, 30 g target.",
    "values": {
     "variant": "hybrid",
     "size": "M",
     "length": 48,
     "width": 32,
     "baseHeight": 8,
     "hybridWall": 10,
     "ribCount": 4,
     "ribHeight": 6,
     "ribWidth": 1.6,
     "noseAngle": 25,
     "targetMass": 30,
     "insertMaterial": "steel"
    }
   },
   {
    "id": "flat-l-50-tungsten",
    "title": "Flat L — 50 g (tungsten)",
    "description": "Tungsten balls fit in a smaller cavity; for distance with less drag.",
    "values": {
     "variant": "flat",
     "size": "L",
     "length": 60,
     "width": 38,
     "baseHeight": 8,
     "ribCount": 5,
     "ribHeight": 10,
     "ribWidth": 1.8,
     "noseAngle": 22,
     "targetMass": 50,
     "insertMaterial": "tungsten"
    }
   },
   {
    "id": "hybrid-l-45",
    "title": "Hybrid L — 45 g",
    "description": "Large hybrid feeder with raised side walls for deep water and long casting.",
    "values": {
     "variant": "hybrid",
     "size": "L",
     "length": 58,
     "width": 36,
     "baseHeight": 9,
     "hybridWall": 12,
     "ribCount": 4,
     "ribHeight": 8,
     "ribWidth": 1.8,
     "noseAngle": 22,
     "targetMass": 45,
     "insertMaterial": "steel"
    }
   }
  ]
 },
 "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": {
  "variant": {
   "type": "string",
   "enum": [
    "flat",
    "hybrid"
   ],
   "x-enumTitles": {
    "flat": "Flat",
    "hybrid": "Hybrid (side walls)"
   },
   "title": "Type",
   "description": "Flat is a low-profile feeder; hybrid adds side walls for stability in the cast.",
   "x-group": "type",
   "x-agentSafe": true,
   "x-label-lv": "Veids",
   "default": "flat",
   "x-resetOnPreset": true
  },
  "size": {
   "type": "string",
   "enum": [
    "S",
    "M",
    "L"
   ],
   "x-enumTitles": {
    "S": "S (≈ 20 g)",
    "M": "M (≈ 30 g)",
    "L": "L (≈ 50 g)"
   },
   "title": "Size",
   "description": "Starting-point size; dimensions and weight update below.",
   "x-group": "type",
   "x-agentSafe": true,
   "x-label-lv": "Izmērs",
   "default": "M",
   "x-resetOnPreset": true
  },
  "length": {
   "type": "number",
   "minimum": 30,
   "maximum": 70,
   "x-step": 0.5,
   "title": "Length",
   "description": "Overall length of the feeder bed along the line.",
   "x-group": "body",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Garums",
   "default": 48,
   "x-resetOnPreset": true
  },
  "width": {
   "type": "number",
   "minimum": 20,
   "maximum": 45,
   "x-step": 0.5,
   "title": "Width",
   "description": "Overall width of the feeder bed across the line.",
   "x-group": "body",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Platums",
   "default": 32,
   "x-resetOnPreset": true
  },
  "baseHeight": {
   "type": "number",
   "minimum": 4,
   "maximum": 18,
   "x-step": 0.2,
   "title": "Base height",
   "description": "Thickness of the flat base that holds the weight pocket and the line tube. 14 mm fits a 6 mm ball with a 45° roof; 18 mm fits a 30 g target with steel.",
   "x-group": "body",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Pamatnes augstums",
   "default": 14,
   "x-resetOnPreset": true
  },
  "noseAngle": {
   "type": "number",
   "minimum": 10,
   "maximum": 45,
   "multipleOf": 1,
   "title": "Nose slope",
   "description": "Slope of the leading edge so the feeder does not dig in on the cast.",
   "x-group": "body",
   "x-unit": "deg",
   "x-agentSafe": true,
   "x-label-lv": "Priekšgala slīpums",
   "default": 25,
   "x-resetOnPreset": true
  },
  "chamfer": {
   "type": "number",
   "minimum": 0,
   "maximum": 3,
   "x-step": 0.1,
   "title": "Edge chamfer",
   "description": "Small chamfer on the outer edges of the bed for a less sharp print.",
   "x-group": "body",
   "x-unit": "mm",
   "x-role": "core.chamfer",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Malu nošķēlums",
   "default": 0.8
  },
  "hybridWall": {
   "type": "number",
   "minimum": 4,
   "maximum": 16,
   "x-step": 0.2,
   "title": "Side wall height",
   "description": "Hybrid only: height of the side walls above the bed for a stable cast.",
   "x-group": "body",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-visibleIf": {
    "variant": "hybrid"
   },
   "x-agentSafe": true,
   "x-label-lv": "Sānu malu augstums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "ribCount": {
   "type": "integer",
   "minimum": 2,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Number of ribs",
   "description": "Ribs run across the bed and key the bait to the feeder.",
   "x-group": "ribs",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Ribu skaits",
   "default": 4,
   "x-resetOnPreset": true
  },
  "ribHeight": {
   "type": "number",
   "minimum": 3,
   "maximum": 14,
   "x-step": 0.2,
   "title": "Rib height",
   "description": "Height of the ribs above the bed; taller ribs hold more bait.",
   "x-group": "ribs",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Ribu augstums",
   "default": 8,
   "x-resetOnPreset": true
  },
  "ribWidth": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 3,
   "x-step": 0.1,
   "title": "Rib thickness",
   "description": "Thickness of each rib; at least 1.2 mm so the rib does not break.",
   "x-group": "ribs",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Ribu biezums",
   "default": 1.6,
   "x-resetOnPreset": true
  },
  "lineDiameter": {
   "type": "number",
   "minimum": 0.15,
   "maximum": 0.6,
   "x-step": 0.01,
   "title": "Main line diameter",
   "description": "Diameter of your main line. The bore is checked against this plus a knot and 0.5 mm.",
   "x-group": "tube",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Pamatauklas diametrs",
   "default": 0.3
  },
  "tubeBore": {
   "type": "number",
   "minimum": 2,
   "maximum": 5,
   "x-step": 0.1,
   "title": "Tube bore",
   "description": "Inside diameter of the inline tube. Must be at least line + knot + 0.5 mm so the feeder slides off if the line breaks.",
   "x-group": "tube",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Caurules diametrs",
   "default": 3
  },
  "tubeEntryRadius": {
   "type": "number",
   "minimum": 1,
   "maximum": 2.5,
   "x-step": 0.1,
   "title": "Tube entry rounding",
   "description": "Fillet at each end of the line tube so the line does not chafe.",
   "x-group": "tube",
   "x-unit": "mm",
   "x-role": "core.fillet",
   "x-agentSafe": true,
   "x-label-lv": "Caurules ieejas noapaļojums",
   "default": 1.2
  },
  "tubeWall": {
   "type": "number",
   "minimum": 1,
   "maximum": 3,
   "x-step": 0.1,
   "title": "Tube wall thickness",
   "description": "Wall around the line bore; at least 1 mm so the line stays centred.",
   "x-group": "tube",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Caurules sienas biezums",
   "default": 1.4
  },
  "targetMass": {
   "type": "number",
   "minimum": 10,
   "maximum": 80,
   "multipleOf": 1,
   "title": "Target weight",
   "description": "Total weight on a scale (plastic + inserts). The solver picks the balls.",
   "x-group": "weight",
   "x-unit": "g",
   "x-agentSafe": true,
   "x-label-lv": "Mērķa svars",
   "default": 30
  },
  "insertMaterial": {
   "type": "string",
   "enum": [
    "steel",
    "stainless",
    "tungsten",
    "brass"
   ],
   "x-enumTitles": {
    "steel": "Steel",
    "stainless": "Stainless (rust-proof)",
    "tungsten": "Tungsten (smallest)",
    "brass": "Brass"
   },
   "title": "Weight material",
   "description": "Steel is the default; steel, stainless, tungsten and brass are lead-free (EU Regulation 2026/2501).",
   "x-group": "weight",
   "x-agentSafe": true,
   "x-label-lv": "Atsvara materiāls",
   "default": "steel"
  },
  "allowPutty": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Trim with tungsten putty",
   "description": "When the balls alone cannot hit the target, trim with tungsten putty (0.1 g steps).",
   "x-group": "weight",
   "x-agentSafe": true,
   "x-label-lv": "Precizēt ar volframa pastu",
   "default": 1
  },
  "insertClearance": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 0.6,
   "x-step": 0.05,
   "title": "Cavity clearance",
   "description": "Gap around the balls inside the cavity. The cavity is sized for the largest ball plus this clearance.",
   "x-group": "weight",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Dobuma atstarpe",
   "default": 0.2
  },
  "insertMethod": {
   "type": "string",
   "enum": [
    "pause",
    "open-epoxy",
    "screw-base"
   ],
   "x-enumTitles": {
    "pause": "Print pause (sealed)",
    "open-epoxy": "Open cavity (epoxy)",
    "screw-base": "Heat-set screw base"
   },
   "title": "How the weight goes in",
   "description": "Print pause (default) seals the cavity as you print. Open-epoxy leaves it open. Screw-base needs a heat-set insert for a screw-in weight.",
   "x-group": "weight",
   "x-agentSafe": true,
   "x-label-lv": "Kā ieliek atsvaru",
   "default": "pause"
  },
  "massCalibration": {
   "type": "number",
   "minimum": 0,
   "maximum": 200,
   "x-step": 0.1,
   "title": "Printed plastic weight (from slicer or scale)",
   "description": "Optional. 0 means the solver estimates the plastic weight; a non-zero value overrides the estimate and tightens the uncertainty to ±0.1 g.",
   "x-group": "weight",
   "x-unit": "g",
   "x-agentSafe": true,
   "x-label-lv": "Izdrukas plasta svars",
   "default": 0
  },
  "baitDensity": {
   "type": "number",
   "minimum": 0.8,
   "maximum": 1.5,
   "x-step": 0.05,
   "title": "Bait density",
   "description": "Wet groundbait is about 1.2 g/cm3; adjust for your mix. Used for the bait-mass readout.",
   "x-group": "weight",
   "x-unit": "gcm3",
   "x-agentSafe": true,
   "x-label-lv": "Barības blīvums",
   "default": 1.2
  },
  "mouldEnabled": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Generate the bait mould",
   "description": "A separate press mould generated from the feeder bed. Always fits, with draft on every wall.",
   "x-group": "mould",
   "x-agentSafe": true,
   "x-label-lv": "Ģenerēt barības formu",
   "default": 1
  },
  "mouldClearance": {
   "type": "number",
   "minimum": 0.2,
   "maximum": 1.5,
   "x-step": 0.05,
   "title": "Mould clearance",
   "description": "Gap between the feeder bed and the mould wall, so the bait has room and the feeder releases.",
   "x-group": "mould",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-visibleIf": {
    "mouldEnabled": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Formas atstarpe",
   "default": 0.5
  },
  "mouldDraft": {
   "type": "number",
   "minimum": 5,
   "maximum": 15,
   "x-step": 0.5,
   "title": "Mould draft",
   "description": "Draft on every mould wall so the bait releases. Minimum 5°.",
   "x-group": "mould",
   "x-unit": "deg",
   "x-visibleIf": {
    "mouldEnabled": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Formas izņemšanas leņķis",
   "default": 6
  },
  "mouldWall": {
   "type": "number",
   "minimum": 3,
   "maximum": 12,
   "x-step": 0.5,
   "title": "Mould wall",
   "description": "Wall thickness of the mould block.",
   "x-group": "mould",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-visibleIf": {
    "mouldEnabled": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Formas siena",
   "default": 6
  },
  "mouldResolution": {
   "type": "integer",
   "minimum": 24,
   "maximum": 96,
   "multipleOf": 4,
   "title": "Mould resolution",
   "description": "Segments around the cavity corners; higher is smoother.",
   "x-group": "mould",
   "x-unit": "count",
   "x-role": "core.resolution",
   "x-visibleIf": {
    "mouldEnabled": true
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Formas izšķirtspēja",
   "default": 48
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG (recommended)",
    "asa": "ASA",
    "pla": "PLA (fit check only)"
   },
   "title": "Feeder plastic",
   "description": "PETG is recommended. PLA becomes brittle in water and is only good for a fit check.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Barotavas plasts",
   "default": "petg"
  },
  "layerHeight": {
   "type": "number",
   "minimum": 0.08,
   "maximum": 0.32,
   "x-step": 0.01,
   "title": "Layer height",
   "description": "Used for the pause layer number. Smaller layers give a finer pause, larger layers are faster.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Slāņa augstums",
   "default": 0.2
  },
  "firstLayerHeight": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 0.35,
   "x-step": 0.01,
   "title": "First layer height",
   "description": "Used together with the layer height to find the exact pause layer.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Pirmā slāņa augstums",
   "default": 0.2
  },
  "wallCount": {
   "type": "integer",
   "minimum": 4,
   "maximum": 10,
   "multipleOf": 1,
   "title": "Walls",
   "description": "At least 4 walls around the cavity so it does not leak.",
   "x-group": "print",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Sienas",
   "default": 4
  },
  "infill": {
   "type": "number",
   "minimum": 15,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "100 % infill around the cavity for a sealed weight pocket.",
   "x-group": "print",
   "x-unit": "pct",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 100
  },
  "resolution": {
   "type": "integer",
   "minimum": 24,
   "maximum": 96,
   "multipleOf": 4,
   "title": "Resolution",
   "description": "Segments around the line tube and the cavity; higher is smoother and larger.",
   "x-group": "model",
   "x-unit": "count",
   "x-role": "core.resolution",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Izšķirtspēja",
   "default": 48
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Preview colour",
   "description": "Only changes the preview colour.",
   "x-group": "model",
   "x-role": "core.previewColor",
   "x-agentSafe": false,
   "x-label-lv": "Priekšskata krāsa",
   "default": "#3b82f6"
  }
 },
 "additionalProperties": false
}