add_mesh_chamfer
Bevels selected edges on a CAD part at a set distance in mm, producing a chamfered mesh plus STEP file. Refuses meshes without CAD and reports which edges stayed sharp.
Instructions
Bevel a part's edges, exactly, on its CAD file.
The flat-faced twin of ``add_mesh_fillet``: same CAD route, same
edge selection, same reply.
Literal: it bevels the edges you select at the distance you give
(measured along each face from the edge). An edge on a narrow
face gets a smaller bevel or stays sharp, a hole's rim stays sharp
unless selected, and ``edges.left_sharp`` gives every reason.
A mesh with no CAD file behind it is refused, and a part made
from an OpenSCAD script is bevelled in its script; each refusal
says which.
AGENT DISPLAY CONTRACT: a result carries a before|after self-check
of the part. Look at it and write what changed before calling
the job done.
:param file_path: The part: a STEP file, or a mesh converted from one.
:param distance_mm: Bevel distance from the edge in mm (default 0.5).
:param angle_threshold_deg: An edge is sharp when the surface
turns at least this much across it (default 60).
:param output_path: Output ``.stl`` path (defaults to
``<name>_chamfered.stl``); the CAD is written beside it.
:param edges: Which edges; see ``add_mesh_fillet``.
:param printer_id: The printer the part is for.
:param nozzle_mm: The nozzle size, when it differs from the one
Kiln has for the printer.
:param layer_height_mm: The layer height it will print at.
:param material: The material it will print in.
:param plan_only: Return the plan and every edge's id without
building anything.
:returns: ``path``, ``step_path``, ``edges`` (finished, left
sharp, cautions), ``sized_for``, ``volume_mm3`` and the
measurements before and after; or a refusal saying why.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
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "add_mesh_chamfer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | No | Which edges; see ``add_mesh_fillet``. Default: "". | |
| material | No | The material it will print in. Default: "". | |
| file_path | Yes | The part: a STEP file, or a mesh converted from one. | |
| nozzle_mm | No | The nozzle size, when it differs from the one Kiln has for the printer. | |
| plan_only | No | Return the plan and every edge's id without building anything. Default: false. | |
| printer_id | No | The printer the part is for. Default: "". | |
| distance_mm | No | Bevel distance from the edge in mm (default 0.5). Default: 0.5. | |
| output_path | No | Output ``.stl`` path (defaults to ``<name>_chamfered.stl``); the CAD is written beside it. Default: "". | |
| layer_height_mm | No | The layer height it will print at. | |
| angle_threshold_deg | No | An edge is sharp when the surface turns at least this much across it (default 60). Default: 60.0. |