execute_python
Execute arbitrary Python code in Unreal Editor's Python environment, with access to the full unreal module for scripting and automation.
Instructions
Execute arbitrary Python code in the Unreal Editor's Python environment. Has access to the full unreal module.
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 | Python code to execute in the editor |