Extrude a face
extrude_face
Moves a flat face out or in: a dimension, a boss, or a pocket.
- Needs
- One flat face picked in Edit mode (Face, 3). Not on an imported mesh.
- In the editor
- Edit mode, faces picked (Face, 3): E or Extrude, the distance dragged or typed, every face picked at once.
- Tools tab
- A form of its inputs, filled from what is picked; Run makes the change, one step to undo.
- Agent and MCP
- The chat's agent and MCP clients call
extrude_face, each call one step to undo. Over MCP it also takesproject,editorandrequest_id.
What it does
A flat face moved along its normal by the distance, outward when positive. A side of a box, or an end of a straight extrusion, changes that dimension either way, so a box stays a box; any other face gets a step: outward a boss with walls of its own.
Inward, a face made by Inset a face cuts a pocket. A step keeps its distance, which the Object tab retypes later, and the body stays a recipe.
Inputs
As the agent and MCP clients send them. One left out takes the default its description gives.
| Input | Type | What it is |
|---|---|---|
| bodyneeded | string | The body's id or its name. |
| faceneeded | see the description | A face number from list_faces or from inset_face's `inner_face`, or the side the face looks to as the body stands: "+x", "-x", "+y", "-y", "+z" (its top) or "-z". |
| distanceneeded | number | Distance, in mm. |
Limits
- A pocket has to end inside the body; a face on the body's outline cannot be pushed in past its neighbours, which would need a boolean the editor does not have.
- Only a flat face: a curved one takes a colour alone, as does every face of an imported mesh.
Examples
Given: Box 1, a 20 mm box standing on the ground at the origin.
extrude_face { "body": "Box 1", "face": "+z", "distance": 5 }Then: Box 1 is 25 mm high: the top of a box changes its height.
Given: Box 1, a 20 mm box standing on the ground at the origin.
Inset a face on "+z" by 3 mm, then extrude its inner_face by -2.
Then: A 14 × 14 mm pocket 2 mm deep in the top of the box.