ue_exec_python
Run arbitrary Python code inside the Unreal Editor using available unreal module and mcp_* helpers. Assign output to result variable for retrieval.
Instructions
Esegue codice Python arbitrario dentro l'editor Unreal (escape hatch).
Il modulo unreal e tutti gli helper mcp_* sono disponibili. Assegna il
valore da restituire alla variabile result.
Args: code: snippet Python, es. "result = len(mcp_actor_subsystem().get_all_level_actors())".
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_exec_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |