rhino_save_script_to_file
Save Python code to the Rhino temp scripts folder and receive the saved file path for execution or reference in automation workflows.
Instructions
Save a Python code string to the temp scripts folder and return its path.
Args:
code: Python source code to save.
filename: Filename (e.g. 'my_script.py'); .py extension added if missing.
Returns:
Dict with 'success', 'path' of saved file.
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>",
"filename": "<filename>"
},
"name": "rhino_save_script_to_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| filename | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |