execute_python
Run Python code inside Unreal Editor for Fortnite to explore assets, inspect actor classes, and access engine APIs not exposed by other tools.
Instructions
Run arbitrary Python code inside the UEFN editor's unreal module.
Use this to explore the editor when the dedicated tools aren't enough:
e.g. browsing content with unreal.EditorAssetLibrary, inspecting
Fortnite device/actor classes, or calling APIs not wrapped by other tools.
Args: code: Python source to run. For "statement"/"eval" it must be a single expression/statement; for "file" (default) it can be a full multi-line script. mode: One of "file" (default, runs as a script), "statement" (executes and prints one statement), or "eval" (evaluates one expression and returns its value).
Returns:
dict with success (bool), result (the eval'd value or error
text as a string), and output (anything printed/logged).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| mode | No | file |