Unreal Run Python
unreal_run_pythonExecute Python scripts directly within Unreal Editor's Python environment to automate game development tasks. Control editor operations programmatically.
Instructions
Execute a Python script in the Unreal Editor Python environment.
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": "unreal_run_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python code to execute. | |
| timeoutMs | No | Command timeout. |