run_python_file
Execute Python scripts headlessly in Unreal Engine for long batch jobs, freeing the interactive editor.
Instructions
Execute a .py file headlessly via -ExecutePythonScript.
Useful for long batch jobs that shouldn't tie up the interactive editor.
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": {
"script_path": "<script_path>"
},
"name": "run_python_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_path | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |