rhino_run_python
Execute Python code in Rhino to perform advanced operations, with access to RhinoScriptSyntax, RhinoCommon, and scriptcontext.
Instructions
Execute arbitrary Python code inside Rhino. Has access to rhinoscriptsyntax (rs), RhinoCommon (Rhino.*), and scriptcontext (sc). Use this for advanced operations not covered by other tools.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"params": "<params>"
},
"name": "rhino_run_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |