execute_python
Execute raw Painter Python scripts for custom Substance 3D Painter automation, available only when SP_MCP_ALLOW_EXECUTE_PYTHON=1 is enabled.
Instructions
Execute raw Painter Python only when SP_MCP_ALLOW_EXECUTE_PYTHON=1.
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_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||