ue_execute_python
Run Python scripts inside the Unreal Engine 5 editor to automate tasks, access all editor APIs, and return results via print().
Instructions
Execute Python code inside the UE5 editor. The code has access to the 'unreal' module and all editor APIs. Use print() to return output. This is the most powerful tool - use it when no specific tool exists for your operation.
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": "ue_execute_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |