hoppercode surfaces two tool families. rh_* operates on the
Rhino document; gh_* operates on the Grasshopper canvas.
Bundled Pi skills and prompts live under
mds/ (e.g. gh-modeling-expert,
rhino-document, gh-cookbook).
Rhino document
| Tool | Role |
rh_run_script | Run Rhino commands, Python, or C# on the active document. |
rh_query_objects | List objects (short IDs for GH params). |
Grasshopper canvas — edit
| Tool | Role |
gh_edit_components | Add, move, delete components. |
gh_edit_param | Parameter values and expressions. |
gh_edit_wire | Connect / disconnect wires. |
gh_edit_group | Groups. |
gh_edit_script | Script component source. |
gh_create_widget / gh_mutate_widget | Sliders, panels, toggles, etc. |
gh_param_rhino | Reference or internalize Rhino geometry on params. |
Grasshopper canvas — query
| Tool | Role |
gh_get_canvas | Canvas layout and component snapshot. |
gh_list_components | Search the component library by keyword. |
gh_get_canvas_errors | Runtime errors on the canvas. |
Interaction & capture
| Tool | Role |
rh_capture_view | Capture a Rhino viewport screenshot as PNG for visual QA. Permission-gated; only active after you allow viewport screenshots for the session, and only on models that accept image input. |
rh_view_control | Drive the viewport: switch active / standard / named / CPlane views, set the camera (location, target, lens length, projection), zoom (extents / selected / bounding box), and save named views. |
ask_user | Ask a free-text clarifying question and wait for an answer when requirements are ambiguous. |
pick_option | Present 2–6 options to pick from (an "Other" choice is appended automatically). |