rhino_execute_python
Execute RhinoScript Python code in a live Rhino session. Returns captured print output and error details on failure.
Instructions
Execute RhinoScript Python code in a live Rhino session.
CRITICAL — BEFORE USING THIS TOOL:
1. Call rhino_get_rhinoscript_docs(topic) to find correct signatures.
2. Read the documentation carefully — note exact parameter types.
3. Write code using ONLY the documented signatures.
4. Call this tool with the code.
Code requirements:
- Import rhinoscriptsyntax: ``import rhinoscriptsyntax as rs``
- Use ``print()`` to return output/results to the caller.
- Handle ``None`` returns from functions that might fail.
Changes are wrapped in an undo record and will be reverted on failure.
Returns ``success``, ``output`` (print capture), and ``message``
(error details on failure).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||