Skip to main content
This is a curated module map for execute_code. Use it with runtime introspection when exact symbols or properties are required.

Import policy

Optional modules must be guarded:

FreeCAD

Core document, geometry-value, console, configuration, units, and application services. High-value symbols:
Document object operations:
Use the MCP transaction tools instead of raw document transactions for bridge operations.

FreeCADGui

GUI, selection, viewport, active view, commands, workbench, and main window access. High-value symbols:
Use MCP viewport tools for rendering instead of manual GUI capture where possible.

Part

Boundary representation topology, primitive construction, wires, faces, solids, booleans, import/export, and geometric curves. Construction symbols:
Shape members commonly used by agents:

Sketcher

Sketch constraints and sketch object operations. Primary constructor:
Common constraint types:
Sketch object members:
Prefer MCP get_sketch, edit_sketch_geometry, and add_sketch_constraints when they cover the operation.

Draft

2D and lightweight object construction/modification. Common creation functions:
Common modification functions:
Draft API naming can vary by version. Use runtime introspection for exact function names before relying on uncommon functions.

Mesh

Mesh creation, import/export, and mesh features. Common symbols:
Document TypeId:
Mesh data is faceted and is not a parametric solid.

MeshPart

Mesh/shape conversion utilities, when available. Common operations:
Use defensively:

TechDraw

Drawing pages, views, templates, dimensions, balloons, hatches, and rendered drawing outputs. Common TypeIds:
Prefer MCP list_techdraw_pages and get_techdraw_page for discovery/rendering.

Spreadsheet

Spreadsheet object TypeId:
Common sheet methods:
Method names can vary. Use MCP spreadsheet tools first; they normalize common operations.

Arch / BIM modules

Optional BIM/architecture modules. Import defensively. Common creation functions:
Preserve IFC metadata, hosted openings, levels/storeys, space relationships, and semantic object types.

Fem

Finite-element analysis containers, constraints, meshes, materials, and solver objects. Use only for modeling/preparation unless authoritative simulation setup and validation are explicitly supplied. Do not certify engineering performance from object existence. Common TypeIds include analysis containers and FEM objects; discover exact available types with doc.supportedTypes() and dir(Fem) in the active build.

Import/export modules

Common optional modules:
Use only for user-requested paths and formats. Validate before and after export.