mesh_edit_geometry
Edit mesh geometry in Blender by running single or chained edit-mode operations such as extrude, inset, bevel, subdivide, and delete with smart face or vertex selections.
Instructions
Perform edit-mode geometry operations on a mesh.
Can run a single operation OR chain multiple steps in one edit-mode session.
SINGLE OPERATION: set 'operation' and 'selection'. CHAINED OPERATIONS: set 'steps' as a list of step dicts, each with 'operation', 'selection', and operation-specific params.
Operations: EXTRUDE, EXTRUDE_ALONG_NORMALS, INSET, BEVEL, SUBDIVIDE, DISSOLVE, MERGE, LOOP_CUT, SCALE, TRANSLATE, ROTATE, BRIDGE, FILL, SPIN (lathe/revolve - revolve profile around axis, params: steps, angle, axis, center), DELETE (remove selected geometry, params: delete_type=VERTS/EDGES/FACES/ONLY_FACE)
Smart selection (USE THESE instead of guessing face indices!): {"type": "face", "position": "top"} — topmost face(s) by Z {"type": "face", "position": "bottom"} — bottommost face(s) by Z {"type": "face", "position": "front"} — front face(s) (min Y) {"type": "face", "position": "back"} — back face(s) (max Y) {"type": "face", "position": "left"} — left face(s) (min X) {"type": "face", "position": "right"} — right face(s) (max X) {"type": "face", "normal": [0,0,1]} — faces pointing in direction {"type": "face", "z_greater": 0.5} — faces with center above Z {"type": "face", "z_less": 0.5} — faces with center below Z {"type": "vert", "z_range": [0.4, 0.6]} — verts in Z range {"type": "vert", "position": "top"} — topmost verts {"type": "face", "indices": "all"} — all faces {"type": "all"} — everything
Example steps for building a lamp post base: steps=[ {"operation": "EXTRUDE", "selection": {"type":"face","position":"top"}, "direction":[0,0,0.1]}, {"operation": "SCALE", "selection": {"type":"face","position":"top"}, "scale_vector":[0.8,0.8,1]}, {"operation": "EXTRUDE", "selection": {"type":"face","position":"top"}, "direction":[0,0,0.3]}, {"operation": "SCALE", "selection": {"type":"face","position":"top"}, "scale_vector":[0.6,0.6,1]}, ]
Args: object_name: name of the mesh object to edit operation: single operation name (not needed if using steps) selection: selection dict for single operation steps: list of step dicts for chained operations offset: distance for extrude operations thickness: thickness for inset depth: depth for inset width: width for bevel segments: segments for bevel cuts: cuts for loop_cut/subdivide edge_index: edge index for loop_cut orientation factor: slide factor for loop_cut (-1 to 1) direction: [x,y,z] for extrude/translate scale_vector: [x,y,z] for scale angle: radians for rotate axis: X/Y/Z for rotate
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": {
"object_name": "<object_name>"
},
"name": "mesh_edit_geometry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | No | ||
| cuts | No | ||
| angle | No | ||
| depth | No | ||
| steps | No | ||
| width | No | ||
| center | No | ||
| factor | No | ||
| offset | No | ||
| segments | No | ||
| direction | No | ||
| operation | No | ||
| selection | No | ||
| thickness | No | ||
| threshold | No | ||
| edge_index | No | ||
| delete_type | No | ||
| object_name | Yes | ||
| scale_vector | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |