generate_jewelry_tray
Generate a jewelry tray by size, variant, and dimensions, with optional dividers, text, photo, or QR decoration. Preview the result in an interactive 3D stage to orbit, zoom, and iterate.
Instructions
Generate a jewelry tray with optional decoration; adding a QR code needs Kiln Business. Opens Kiln's interactive inline 3D stage on the result (orbit/zoom panel in MCP Apps hosts; hosted sessions add a browser stage link). MAKE DOORS: design_session, Kiln's front door for making an object, is not installed here (signed in to Kiln it runs on Kiln's servers). On this install compile_scad IS the make → preview → iterate loop: make it, show the preview, iterate.
INLINE 3D STAGE: on success this tool opens Kiln's interactive 3D stage — an inline viewer panel the user can orbit, zoom, and turn over — in hosts that render MCP Apps panels (Kiln's hosted connection attaches a browser stage link for hosts that don't). Oversized meshes are decimated automatically for the stage; the PNG preview is the floor, not the whole experience.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_jewelry_tray"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Size preset — ``"small"``, ``"medium"``, ``"large"``, ``"xl"``. Any other name is refused. Default: "". | |
| bottom | No | ``"plain"``, ``"pocket"``, ``"text:..."`` or ``"qr:URL"``. Default: "plain". | |
| variant | No | Tray variant — ``"square"``, ``"rectangle"``, ``"divided"``; with ``size``, it picks which preset table is used. Geometry comes from the dimensions and divider counts. Any other value is refused. Default: "square". | |
| wall_mm | No | Wall thickness (default 2.4mm, min 1.6mm). Default: 2.4. | |
| brief_id | No | Optional saved-goal id from ``design_session``. When supplied, the produced mesh gets a ``design_brief:<id>`` intent sidecar so the audit's "matches what you asked for" gate, the brief failure_history wiring, and the ``compare_design_versions`` intent diff all light up against the saved goal. Omit to skip — REST callers without a goal still get an auto-inferred brief at dispatch time. Default: "". | |
| depth_mm | No | Tray depth (default 80mm). Default: 80.0. | |
| material | No | Material (default PLA). Default: "PLA". | |
| width_mm | No | Tray width (default 120mm). Default: 120.0. | |
| height_mm | No | Tray height (default 20mm, min 12mm). Default: 20.0. | |
| body_color | No | Body color (default white for QR contrast). Default: "white". | |
| decoration | No | Interior base content — the path of a photo or logo, ``"text:..."`` or empty. A photo needs a tray without dividers (the dividers would stand across it) and is refused on a divided one; a file that is not there is refused. Default: "". | |
| dividers_x | No | Vertical dividers along width (0-4). Default: 0. | |
| dividers_y | No | Horizontal dividers along depth (0-3). Default: 0. | |
| photo_mask | No | Photo crop shape for a photograph (a logo on a clean field is carved unmasked whatever is passed; a name outside this list is refused) — ``"circle"``, ``"rectangle"`` or ``"rounded_rectangle"``. Empty or ``"auto"`` is ``"rounded_rectangle"``, since every variant is rectangular. Default: "". | |
| include_step | No | Also emit a CAD-exact STEP file. The STEP is REAL analytic B-rep built from the same typed parameters as the mesh — true planes and cylinders a machine shop's CAD opens clean, never a tessellated conversion. On success the response gains a ``step`` block with ``step_path``. Photo-interior and QR trays refuse the STEP honestly (heightmap relief has no analytic form; QR is a two-solid assembly) — the mesh outputs are always unaffected. Default: false. | |
| color_overrides | No | JSON dict mapping role → color name/hex. Overrides body_color for "body" role unless body_color is also set. Default: "". | |
| corner_radius_mm | No | Corner radius (default 8mm). Default: 8.0. |