run_script
Execute custom Python code (rhinoscriptsyntax) inside Rhino to perform modeling operations not covered by dedicated tools; assign a value to result to return it.
Instructions
逃生舱:直接在 Rhino 里执行一段 Python 代码(rhinoscriptsyntax)。
代码里可用变量:rs、Rhino、scriptcontext、doc;把返回值赋给变量 result 会被带回。 常规建模优先用上面的专用工具,这个只用于工具覆盖不到的操作。
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": {
"code": "<code>"
},
"name": "run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |