execute_grasshopper_code
Execute Python code for Grasshopper modeling, save the script to a specified file path, and retrieve execution results.
Instructions
Execute given Python code.
Args: code: The given code to execute file_path: Path where the generated code will be saved
Returns: Result of the executing code
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>",
"file_path": "<file_path>"
},
"name": "execute_grasshopper_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| file_path | Yes |