rhino_eval_expression
Evaluate Python expressions inside Rhino to compute values or call RhinoScript functions, returning results directly.
Instructions
Evaluate a Python expression inside Rhino and return the result.
Args:
expression: A valid Python expression string (e.g. '2 + 2' or 'rs.WorldXYPlane()').
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": {
"expression": "<expression>"
},
"name": "rhino_eval_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |