execute_salome_code
Run arbitrary Python code inside SALOME to automate tasks and return a result variable. Use for custom CAD modeling and meshing beyond standard operations.
Instructions
Execute arbitrary Python code in the SALOME process.
The executed code can set a result variable that will be returned.
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": "execute_salome_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |