Supported APIs#

This page lists the APIs (MCP tools) registered by PyAnsys Geometry-MCP.

Design and session#

Tool

Description

get_backend_status

Report whether the Geometry backend is connected.

create_design

Create a design with the specified name.

get_design_info

Inventory the active design, counting objects throughout nested components.

get_session_script

Return the recorded session commands as a reusable PyAnsys Geometry script.

run_python

Run PyAnsys Geometry Python code in the persistent session for operations without a dedicated tool.

run_iron_python

Run an existing Discovery or SpaceClaim scripting API file.

file_operation

Import a geometry file or export the active design.

Selection and querying#

Tool

Description

list_entities

List bodies, components, faces, edges, design curves, datum points/planes/lines, or coordinate systems. Body and construction-object listings include component paths and support component scoping and case-insensitive name lookup.

create_selection_builder

Create an empty selection builder and return its handle.

select_entities

Find entities matching criteria and add them to a selection builder.

filter_entities

Narrow the entities already held by a selection builder.

order_entities

Order the selected entities by a numeric property.

group_entities

Group selected entities by a shared property.

extend_selection

Extend the current selection to related entities.

create_named_selection

Create a named selection from a selection builder or specified geometry entities.

Modeling and repair#

Tool

Description

boolean_operation

Subtract, unite, or intersect two bodies. The target body survives and the tool body is consumed.

inspect_geometry

Report geometry issues without modifying the design. By default, inspect all bodies.

repair_geometry

Repair a selected class of geometry problem.

Visualization#

Tool

Description

get_design_3d_scene

Open a 3D scene window for the active design.

get_screenshot

Capture a screenshot of the active design’s 3D scene.

read_image_in_base64

Read an image file and return its contents as base64-encoded data.