> ## Documentation Index
> Fetch the complete documentation index at: https://mcp4rhino.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP tools

> Inventory of MCP4Rhino tools exposed at http://127.0.0.1:4010/mcp.

Tools your AI assistant can call at `http://127.0.0.1:4010/mcp`.

**Document units:** create and transform tools use the **current document unit system**. If you say “32 inches” and the file is in Feet, the assistant should convert first, then create, then measure to verify.

## Core document and view

| Tool | Description |
| - | - |
| `get_document_info` | Units, layers, counts, selection |
| `get_document_units` | Unit system, tolerances, conversion factors |
| `convert_length` | Convert a named unit into document model units |
| `measure_size` | Bounding-box size plus mm/in/ft/m |
| `get_objects` | List/filter by tag, group, layer, or name |
| `create_box` / `create_sphere` / `create_cylinder` | Solids (document model units) |
| `delete_objects` | Delete by GUID list |
| `set_user_text` / `get_user_text` | Object key/value tags |
| `set_object_name` / `set_object_layer` | Rename or change layer |
| `list_groups` / `create_group` / `add_to_group` | Group membership |
| `list_views` / `get_view` / `set_active_view` | Viewports |
| `set_illustration_style` | Pale architectural display preset |
| `set_view` / `orbit_view` / `pan_view` / `zoom_view` / `zoom_extents` | Camera |
| `capture_viewport` | PNG screenshot (+ MCP image when ≤ 1 MiB) |
| `run_rhino_command` | Scripted Rhino command escape hatch |
| `get_support_info` | Version, endpoint, log path, and GitHub Issues links |

### `capture_viewport` notes

* **macOS:** scripted `ViewCaptureToFile` (no `width`/`height` into the script). Default PNG under `~/Library/Logs/MCP4Rhino/`.
* **Windows:** ViewCaptureToFile first; CaptureToBitmap fallback uses `width`/`height`. Default under `%LOCALAPPDATA%\MCP4Rhino\`.
* When embedded, content includes `type: "image"` / `mimeType: "image/png"`. Oversize omit: `image_embedded: false`, `image_omitted_reason: "exceeds_max_bytes"` (1 MiB raw).

## Curves and solids

* **Create:** `create_point`, `create_line`, `create_polyline`, `create_circle`, `create_arc`, `create_ellipse`, `create_polygon`, `create_rectangle`, `create_curve`
* **Edit:** `join_curves`, `trim_curve`, `split_curve`, `explode_objects`, `offset_curve`, `fillet_curve`, `extrude_curve`
* **Other:** boolean tools, `transform_objects`, layers, blocks, `set_document_units`, `get_geometry`, `select_objects`, `clear_selection`

## Surfaces

* **Create:** `create_plane_surface`, `create_srf_pt`, `create_planar_surface`, `create_edge_surface`, `loft_surface`, `sweep1_surface`, `sweep2_surface`, `revolve_surface`, `rail_revolve_surface`, `network_surface`, `patch_surface`, `pipe_surface`, `extrude_curve_along_curve`
* **Edit:** `fillet_surfaces`, `blend_surfaces`, `chamfer_surfaces`, `offset_surface`, `trim_surface`, `split_surface`, `join_surfaces`, `cap_planar_holes`
* **Edges:** `list_surface_edges`, `dup_border`, `dup_edge`, `extract_isocurve`

Surface face pick for fillet/chamfer: `face_index_*` or `pick_point_*`. Edge pick for blend/`dup_edge`: `edge_index` or `pick_point` from `list_surface_edges`.

## Building elements

`set_project_info`, `get_project_info`, `create_level`, `list_levels`, `set_active_level`, `create_grid`, `create_site`, `create_building`, `create_wall`, `create_slab`, `create_roof`, `create_column`, `create_beam`, `create_door`, `create_window`, `create_stair`, `create_ramp`, `create_railing`, `create_curtain_wall`, `create_space`, `update_space`, `list_spaces`, `apply_opening`, element types, `get_building_model`, `query_elements`, `measure_distance`, `measure_area`, `measure_clear_width`.

Semantic tags use `mcp4:` user-text keys on model objects.

## Drawings and documentation

`create_section`, `create_elevation`, `create_detail_view`, `create_dimension`, `create_text`, `create_leader`, `create_hatch`, room/door/window tags, `create_schedule`, `create_sheet`, `list_sheets`, `place_view_on_sheet`, `export_pdf`, `export_dwg`, `export_images`, `apply_layer_standard`.

## Interop and analysis

`check_rhino_license`, `export_3dm` (requires valid license / active eval — call `check_rhino_license` first), `export_ifc`, `clash_detect`, `quantity_takeoff`, and related helpers.

## Code checks

`set_code_context`, `run_code_checks`, `get_code_report`

## Grasshopper

Available in MCP4Rhino **0.7** and later, for Grasshopper 1 in Rhino 8. See [getting started](https://mcp4rhino.mintlify.site/grasshopper/getting-started.md).

| Workflow | Tools |
| - | - |
| Learn and check availability | `gh_help`, `gh_status` |
| Discover supported components | `gh_search_components`, `gh_describe_components` |
| Create, attach, save, and close definitions | `gh_list_documents`, `gh_open_document`, `gh_save_document`, `gh_close_document` |
| Inspect and edit graphs | `gh_inspect_document`, `gh_apply_patch` |
| Solve and monitor jobs | `gh_solve`, `gh_get_job`, `gh_cancel_job` |
| Inspect current outputs and bake snapshots | `gh_read_output`, `gh_bake` |

Start with `gh_help` topic `index`. See the [Grasshopper tool reference](https://mcp4rhino.mintlify.site/grasshopper/tools.md) for all arguments, defaults, limits, typed values, and recovery. Follow [the parametric array tutorial](https://mcp4rhino.mintlify.site/grasshopper/first-definition.md) for an editable example.

## Related

* [Quickstart](https://mcp4rhino.mintlify.site/quickstart.md)
* [How to troubleshoot](https://mcp4rhino.mintlify.site/howto/troubleshoot.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.