run_script
Run a SpaceClaim Python (IronPython) script for CAD tasks not covered by the typed tools. Pass inputs via argsDict, return outputs in result, and the design is re-read afterward.
Instructions
Escape hatch: run a script inside the product for anything the typed tools do not cover. The design is re-read afterwards.
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 |
|---|---|---|---|
| args | No | Passed as argsDict. | |
| code | Yes | SpaceClaim Python (IronPython) script using the SpaceClaim API of the running release. Read inputs from the dict argsDict; put outputs in a dict named result (string values). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||