Skip to content

Reflection

24 tools for any object by reflection: properties, functions and calls, classes, structs, enums, delegates and object diffs.

Back to the index.

call_function

Destructive

Invoke a UFUNCTION and get its return value and out-params back typed. The target is any UObject named by object_path -- a level actor, component archetype, class default object, asset, or a LIVE PIE subobject when world picks a live world (the response stamps which world ran it) -- or, with class_name instead, that class's Class Default Object (the way to reach UKismetSystemLibrary, UGameplayStatics or any Blueprint Function Library when there is no instance), or, with component_class, the FIRST component of that class on the actor object_path names (no hand-built component path; in co-op, world='server' is where authoritative component state lives). Arguments go in the parameters dict, keyed by parameter name (an unknown key is a hard error, so read the signature with get_function_info first). Marshals scalars, ENUM by entry name, Blueprint STRUCTs as JSON objects, ARRAY/set as JSON arrays, FGameplayTag (validated against the registry), FGuid, and OBJECT/class arguments by path (resolved in the target's own world first, then as an asset; a path that resolves to nothing is a hard error, never a silent null). Only BlueprintCallable+Public or BlueprintEvent functions are callable; pass transact=true to make the write undoable and actually dirty an OFPA package.

Parameter Type Required Description
function_name string yes Name of the function to call, exactly as declared (a Blueprint graph named "Add Item" keeps its spaces)
object_path string no Path or name of the target object: full object path, asset path, CDO/archetype, or a dotted "Actor[.Component[.Subobject]]" (first segment: the actor's internal name in the editor world, internal name OR editor label in a live world). With component_class it names the ACTOR whose component is called. Required unless class_name is given.
actor string no Alias of object_path.
class_name string no Optional, instead of object_path: a class NAME (bare/native e.g. "KismetSystemLibrary", /Script path, or a Blueprint asset path -- a Blueprint path yields its GeneratedClass); the function runs on that class's Class Default Object, with no world.
component_class string no Optional component CLASS (bare/native name, /Script path, or Blueprint asset path) to locate on the actor object_path names; the FIRST component of (or derived from) that class is the target. Must derive from UActorComponent.
function string no Alias of function_name.
parameters object no Optional {param_name: value} dict. Scalars map directly; pass an ENUM by its entry name as a string (e.g. "Harvest"); pass a STRUCT param as a JSON object {Field: val, ...} and an ARRAY/set as a JSON array (nativized via FJsonObjectConverter — nested structs + enum-by-name inside structs supported; JSON keys match the field's authored name); FGameplayTag as {"TagName":"A.B"}; FGuid as a hex/braced string. A UE-format text string (e.g. "(X=1,Y=2,Z=3)") is also accepted for structs.
args_json object no Alias of parameters; like parameters it also takes the dict as JSON text.
params object no Alias of parameters.
world string no Optional world selector (takes precedence over use_pie_world): absent/'editor' (default) | 'pie' (ambiguous: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'). Anything other than absent/'editor' resolves object_path in that live world; an unrecognised value is an error naming the worlds that exist. Ignored with class_name.
use_pie_world boolean no Optional (default false). Resolve object_path in the running PIE world instead of the editor world. Equivalent to world='pie'; world wins when both are given.
transact boolean no Optional (default false). When true, wrap the invocation in an FScopedTransaction and Modify() the target (and, for a component, its owner) BEFORE calling, so whatever the function writes is undoable AND marks the owning package dirty. Without this, a CallInEditor-style function that fills state on a World Partition (OFPA) actor leaves the package clean and save_level reports success while writing nothing. REFUSED for pure/const functions and for PIE-world targets (both would only produce a false-positive dirty flag).

Returns: { object_path: string, function_name: string, success: bool, message: string, return_value: any (typed: bool/number/string natively, struct/map as object, array/set as array, object-ref as path string), out_params: object (same typed values), world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number, class_name?: string, class_path?: string, actor?: string, component_class?: string, component_path?: string, transaction?: { requested, modified: [path], saved_to_transaction_buffer, is_package_external, package_name, package_file, package_file_exists, package_dirty_before, package_dirty_after }, verification?: object (only when transact=true) } -- object_path echoes the request (with class_name, the class default object's path); class_name/class_path with class_name; actor/component_class/component_path with component_class.

diff_objects

Read-only

Diff TWO LIVE objects property by property at the same instant, using the ENGINE's own equality (FProperty::Identical + PPF_DeepComparison) rather than exported text, so FText localization identity and object-outer differences are classified as noise instead of being reported as real differences. Use it for "instance vs its CDO", "fork vs original", "this actor vs that one". Accepts world, which resolves BOTH paths in the SAME world (e.g. two live actors inside the server world); to compare the same actor ACROSS worlds — server vs client — use capture_object_snapshot + diff_object_snapshots, which is what a replication check needs. list_instance_overrides diffs a placed actor against its archetype and also tells you which package carries the override; diff_blueprints diffs the AUTHORED graphs instead of live values.

Parameter Type Required Description
object_path_1 string yes Path or name of the first object (full object path, asset path, CDO/archetype, or dotted "Actor[.Component[.Subobject]]" by internal name; in a live world the first segment also matches the editor LABEL)
object_path_2 string yes Path or name of the second object, same resolution as object_path_1 and in the SAME world
equality_predicate string no Optional 'identical' (DEFAULT, FProperty::Identical + PPF_DeepComparison — what the engine itself calls equal) or 'export_text' (raw ExportTextItem_Direct(Defaults=nullptr, PPF_None) string compare, kept only for callers that depend on its over-reporting behavior).
include_noise boolean no Optional (default false). With equality_predicate='identical', also emit under noise[] the properties the engine considers EQUAL but whose exported text differs (FText localization identity, object outer). They are ALWAYS counted in noise_counts whether or not this is set.
world string no Optional world selector applied to BOTH paths: absent/'editor' (default) | 'pie' (ambiguous: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'). It cannot straddle two worlds — one selector, both objects; an UNRECOGNIZED value is an error naming the worlds that exist, never a silent fallback.

Returns: { object_path_1: string, object_path_2: string, same_class: bool, same_type: bool, equality_predicate: string, differences: [{property, difference, kind, value_1?: typed_value, value_2?: typed_value, export_text_1?, export_text_2?, note?}], difference_count: int, noise_counts: object, noise_count: int, noise?: [...], world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }

find_classes_implementing_interface

Read-only

Find every class loaded in memory that implements an interface (a native UInterface or a Blueprint Interface), directly or through a parent class, without changing anything: per class its name, path, is_blueprint and implemented_by_k2 (the interface was added in a Blueprint). The engine keeps no reverse index, so it sweeps every loaded class (scanned_class_count) and returns the matches sorted by path, a page at a time (offset/limit; total counts them all); deprecated and replaced classes are skipped. A Blueprint that is not loaded is missed: for a base class rather than an interface use list_derived_classes, which also reads unloaded Blueprints from the Asset Registry. An interface that does not resolve, or a class that is not an interface, is an error. One class's interfaces: get_class_hierarchy; add an interface to a Blueprint: implement_interface.

Parameter Type Required Description
interface string yes Interface to search for: bare reflected name (e.g. "Interactable" or "UInteractable"), a /Script/Module.Name path, or a Blueprint Interface asset path (e.g. "/Game/BPI/BPI_Use.BPI_Use"), resolved like list_derived_classes' base_class.
include_blueprints boolean no true (default) also returns Blueprint-generated classes; false returns native C++ classes only.
offset integer no Index of the first entry returned, counted from 0 (default 0). Read the next page at the reply's next_offset.
limit integer no Most entries returned per call, 1..1000 (default 100).

Returns: { interface: string, classes: [{class_name, path, is_blueprint, implemented_by_k2}], count: int (entries in this page), scanned_class_count: int, total: int, offset: int, limit: int, returned: int, truncated: bool, next_offset: int|null }

get_actor_properties_by_class

Read-only

Find placed actors by CLASS (IsA) and/or editor label and read chosen properties of each in one call, as { path, props } per instance, in a live PIE world by default or in the editor world with world='editor' (no PIE needed). Pick it when you have no object path, or want the same properties across many actors; for one object you can name, get_properties reads it typed and reports a misspelled name in not_found[], where this tool silently drops it. Filter with class_name and/or actor_label, drill into one component, list the properties to read, and compare world='server' with 'client' to separate the authoritative value from the replicated one; the reply stamps the world that answered. It replaces an execute_python loop over GetAllActorsOfClass + get_editor_property. Read-only.

Parameter Type Required Description
class_name string no Class filter: bare UClass name resolved with FindFirstObject (e.g. "BP_MyActor_C", "StaticMeshActor"), NOT an asset path. Matches every actor that IsA(class_name). REQUIRED unless actor_label is given.
actor_label string no Editor-label filter; matches actors whose GetActorLabel() equals this EXACTLY (no substring, no case-folding). REQUIRED unless class_name is given — the call errors when both are missing.
component string no Optional component name to drill into on each matched actor (reads that component's props instead of the actor's). WARNING: actors that have no component with this name are DROPPED from instances entirely, so a short list can mean "wrong component name", not "no such actor".
properties array no Optional property names to read. Names the target does not have are skipped SILENTLY (no not_found list — cross-check the spelling with get_object_info or get_class_properties). Omit it to read every BlueprintVisible property, which on a Character is a very large payload.
world string no Optional world selector: absent/'pie' (default, ambiguous: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'editor' | 'game' (alias of 'pie'). THIS is the parameter that separates a server reading from a client one.

Returns: { instances: [{ path: string, props: object (typed values) }], instance_count: int, world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }

get_class_functions

Read-only

List every UFUNCTION a class exposes — the ones it DECLARES plus every inherited one, each tagged with owner_class and is_inherited, and counted separately in declared_function_count / inherited_function_count so "does this class add a function of its own?" is answerable WITHOUT reading the array (declared_only=true returns just those) — with its signature and the flags that decide whether MCP can call it: is_blueprint_callable, is_public, is_static, is_blueprint_pure, is_blueprint_event, is_call_in_editor, category, tooltip and the parameter names/types. This is the lookup to run BEFORE call_function, which refuses anything that is not BlueprintCallable+Public or a BlueprintEvent. WARNING: ZERO own functions is NOT "no Blueprint API": components and data classes usually expose theirs as PROPERTIES (get_class_properties), and a plugin's runtime API often lives in a separate static "*BlueprintLibrary" class rather than on the type itself — both traps show up on MetaHumanComponentBase, whose creator API is in MetaHumanCharacterInstanceBlueprintLibrary. get_function_info drills into ONE function (and separates return values from inputs); get_blueprint_functions lists the graphs a Blueprint AUTHORED rather than the compiled class surface.

Parameter Type Required Description
class_name string yes UClass identifier, resolved with ResolveClass: bare FName ("Character"), /Script/Module.Class, a Blueprint asset path, or a generated class ("BP_MyActor_C"). WARNING: the REGISTERED FName can differ from the C++ type name and from the name the Python bindings expose — UMetaHumanCharacterInstance is registered as "MetaHumanInstance" — so a failure here is NOT evidence the class is absent; the error names the near misses instead. The response echoes what it resolved to in resolved_class_name / resolved_class_path.
declared_only boolean no Optional bool (default false). true = ONLY the UFUNCTIONs this class declares, skipping every inherited one.

Returns: { class_name: string, resolved_class_name: string, resolved_class_path: string, declared_only: bool, functions: [{name, owner_class, is_inherited, is_blueprint_callable, is_blueprint_event, is_public, is_static, is_blueprint_pure, is_call_in_editor, category?, tooltip?, parameters: [{name, type}]}], function_count: int, declared_function_count: int, inherited_function_count: int }

get_class_hierarchy

Read-only

Walk the full inheritance chain of a class from itself up to UObject, one record per level with its path, is_native flag, class flags/metadata and implemented interfaces — the answer to "is X a Y?" and "where does the native code stop and the Blueprint chain start?". For a USubsystem class it also names the subsystem lifetime (Engine, Editor, GameInstance, World or LocalPlayer), at the top and per level. get_blueprint_parent returns only the IMMEDIATE parent of a Blueprint ASSET; this returns every ancestor of a compiled CLASS. list_derived_classes goes the other direction (descendants).

Parameter Type Required Description
class_name string yes UClass identifier, resolved with ResolveClass: bare FName ("Character"), /Script/Module.Class, a Blueprint asset path, or a generated class ("BP_MyActor_C"). WARNING: the REGISTERED FName can differ from the C++ type name and from the name the Python bindings expose — UMetaHumanCharacterInstance is registered as "MetaHumanInstance" — so a failure here is NOT evidence the class is absent; the error names the near misses instead.

Returns: { class_name: string, lifetime?: string, hierarchy: [{name, path, is_native, lifetime?, is_abstract, is_deprecated, is_placeable, config_name, implemented_interfaces: [{interface, implemented_by_k2}], class_group?, is_blueprintable?, is_blueprint_type?, display_name?, tooltip?}] } -- lifetime only on a USubsystem class and on its levels that are USubsystem classes ("Unknown" for the abstract USubsystem bases).

get_class_properties

Read-only

List every property VISIBLE on a class — the ones it DECLARES plus every inherited one, each tagged with owner_class and is_inherited so "does this class add anything of its own?" is a FIELD (declared_property_count) and not an eyeball diff against a remembered list of engine members. declared_only=true returns just this class's own. WARNING: a component or data class usually exposes its Blueprint API as PROPERTIES, not functions: get_class_functions coming back with nothing of its own does NOT mean the class has no API — ask here too (e.g. MetaHumanComponentBase: 0 own functions, 12 own properties). Full typed descriptor per property — kind, cpp_type, editable, edit_const, blueprint_visible, replicated, save_game, config, clamp min/max, enum entries, struct fields, tooltip, edit_condition — plus the class's own flags, config name and implemented interfaces. Schema only: NO instance values. Use get_object_info (include_property_metadata=true) for the same descriptors WITH the current values of a live object, get_properties when you already know the names, and get_blueprint_variables for just the variables a Blueprint itself authored.

Parameter Type Required Description
class_name string yes UClass identifier, resolved with ResolveClass: bare FName ("Character"), /Script/Module.Class, a Blueprint asset path, or a generated class ("BP_MyActor_C"). WARNING: the REGISTERED FName can differ from the C++ type name and from the name the Python bindings expose — UMetaHumanCharacterInstance is registered as "MetaHumanInstance" — so a failure here is NOT evidence the class is absent; the error names the near misses instead. The response echoes what it resolved to in resolved_class_name / resolved_class_path.
declared_only boolean no Optional bool (default false). true = ONLY the properties this class declares, skipping every inherited one. The cheap way to ask "what does this class add?", and what keeps a big class's response from being offloaded for size (get_class_properties("MetaHumanComponentBase") is 44 KB inherited-heavy, 12 properties declared).

Returns: { class_name: string, resolved_class_name: string, resolved_class_path: string, declared_only: bool, declared_property_count: int, inherited_property_count: int, is_abstract, is_deprecated, is_placeable, is_native, config_name, implemented_interfaces: [{interface, implemented_by_k2}], class_group?, is_blueprintable?, is_blueprint_type?, display_name?, tooltip?, properties: [<typed descriptor: name, owner_class, is_inherited, kind, cpp_type, editable, edit_const, blueprint_visible, save_game, replicated, config, deprecated, disable_edit_on_instance, enum_values?, fields?, object_class?, inner?, clamp_min/max?, tooltip?, edit_condition?, categories?, units?, display_name?, allow_private_access>], property_count: int }

get_component_events

Read-only

List the events (dynamic multicast delegate properties, such as OnComponentHit or OnComponentBeginOverlap) that one component of an actor in the editor world exposes, read from its class by reflection, inherited ones included: per event its name, declaring class, whether it is inherited, its signature and parameters (name, C++ type, is_out), whether Blueprints can bind it (blueprint_assignable) and whether anything is bound to it on this component now. Also facts about the component: class with its category, tooltip and display-name metadata, active and registered state, owner and creation method. Read-only. A name it lists is what subscribe_to_delegate takes to record fires, and what add_component_bound_event binds in a Blueprint; get_class_properties lists every property of a class. An actor or component not found is an error.

Parameter Type Required Description
actor_name string yes Object name (not the label) of the actor in the editor world, compared without case, e.g. 'StaticMeshActor_0'.
component_name string yes Object name of one of that actor's components, compared without case, e.g. 'StaticMeshComponent0'; get_actor_components lists them.

Returns: { actor_name: string, component_name: string, component_class: string, component_category: string, component_tooltip: string, component_display_name: string, events: [{name, owner_class, is_inherited, blueprint_assignable, blueprint_callable, signature, parameters: [{name, type, is_out}], parameter_count, is_bound}], events_count: int, declared_events_count: int, component_is_active: bool, component_is_registered: bool, component_owner: string, component_creation_method: string }

get_enum_info

Read-only

Read an enum's definition — native or Blueprint (UUserDefinedEnum) — listing every entry (the _MAX sentinel excluded) with index, internal_name, display_name and numeric value. WARNING: the two names DIVERGE on a Blueprint enum: the editor shows the display_name ("Snowy") while the authored entry is the opaque internal_name ("NewEnumerator5"), and the INTERNAL name is what set_properties / set_component_property / call_function's enum-by-name marshaling accept. Read it here before writing an enum, or the write imports nothing.

Parameter Type Required Description
enum_name string yes Bare enum name resolved with FindFirstObject (e.g. "ECollisionEnabled", "E_MyEnum"); an asset path is NOT accepted here

Returns: { enum_name: string, enum_path: string, is_user_defined: bool, values: [{index, name, internal_name, display_name, value}] }

get_function_info

Read-only

Inspect ONE UFUNCTION on a class and get its exact call contract: input parameters and RETURN/out values split into separate lists (get_class_functions lumps them together), plus is_blueprint_callable / is_public / is_static / is_blueprint_pure / is_call_in_editor, category and tooltip. Run it to learn the PARAMETER NAMES to put in call_function's parameters — that dict is keyed by name and an unknown key is a hard error.

Parameter Type Required Description
class_name string yes Bare UClass name resolved with FindFirstObject (e.g. "KismetSystemLibrary", "BP_MyActor_C"); an asset path is NOT accepted here
function_name string yes Name of the function to inspect, exactly as the class declares it (a Blueprint graph named "Add Item" keeps its spaces)

Returns: { class_name: string, function_name: string, is_blueprint_callable: bool, is_blueprint_event: bool, is_public: bool, is_static: bool, is_blueprint_pure: bool, is_call_in_editor: bool, category?, tooltip?, parameters: [{name, type}], returns: [{name, type}] }

get_object_info

Read-only

Core tool: every client lists it by default.

Portrait of one object whose property names you do not know yet: its identity and class, class flags and interfaces, every reflected property as { name: typed_value }, and for an actor its components.

Use it first on anything unfamiliar, then write with set_properties using the names it lists. Once you know the names, get_properties reads only those and is far cheaper: an actor's portrait can run to hundreds of properties. get_class_properties describes a class with no instance, and get_actor_components lists the components alone.

object_path takes a path from find_assets_by_name, an object_path from get_graph_nodes or another reader, or an actor's component as "Actor.Component", the actor by its internal name. {"object_path": "/Game/Blueprints/BP_Door", "include_properties": false} answers only "what is this?", with identity and class. include_property_metadata=true adds each property's type, editability, replication and clamp range next to its value, which says whether set_properties can write it. world "server", "client" or "pie:N" portrays the live instance in Play-in-Editor, and the reply names the world that answered.

A reply over 40,000 characters (the console variable mcp.OversizeResponseChars), common for a Blueprint with include_property_metadata, is written to a file instead: the reply keeps its scalar fields and gives report_path, which get_mcp_audit_report reads. An object or a world it cannot find is an error naming what it searched.

Parameter Type Required Description
object_path string yes Path or name of the object to inspect. In the editor world: full object path, asset path, CDO/archetype, an asset's sub-object as the readers give its object_path -- a graph node from get_graph_nodes, a sound cue node, a Niagara renderer or simulation stage, a PCG node's settings_path, a behavior tree node, a camera rig node, a Mass trait, a physics body -- also written "/Game/Asset:SubObject", or a dotted "Actor[.Component[.Subobject]]" whose first segment is the actor's INTERNAL name. In a live world: a fully-qualified PIE path or the same dotted form (first segment matches internal name OR editor label).
world string no Optional world selector: absent/'editor' (default: the editor/asset instance) | 'pie' (ambiguous: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'). Anything other than absent/'editor' portrays the LIVE instance in that world; an UNRECOGNIZED value is an error naming the worlds that exist, never a silent fallback to another world.
include_properties boolean no Optional bool (default true). false skips the properties and the components list, leaving identity and class only.
include_property_metadata boolean no Optional bool (default false). true returns properties as an ARRAY of typed descriptors (see get_class_properties) each with its current value, instead of the { name: typed_value } map.

Returns: { object_path: string, object_name: string, class_name: string, class_path: string, super_class: string, is_valid: bool, is_abstract, is_deprecated, is_placeable, is_native, config_name, implemented_interfaces: [{interface, implemented_by_k2}], class_group?, is_blueprintable?, is_blueprint_type?, display_name?, tooltip?, properties?: {prop_name: typed_value} | [<typed descriptor + value>], property_count?: int, components?: [{name, class}], world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number } -- properties/property_count/components only with include_properties; properties is the array form with include_property_metadata; super_class is "None" for UObject.

get_package_info

Read-only

Inspect a package that is ALREADY LOADED IN MEMORY: its long name, its is_dirty flag, and every UObject it contains with that object's class. Answers "what actually lives inside this .uasset, besides the asset named after it?" and "does this package have unsaved changes?". WARNING: it resolves with FindFirstObject over loaded UPackages — a package that is on disk but not loaded is reported as not found; use get_asset_by_name / resolve_asset_by_name for on-disk existence, and list_dirty_packages to sweep every dirty package at once.

Parameter Type Required Description
package_path string yes Long package name of a LOADED package (e.g. "/Game/MyGame/Systems/Foo/BP_Foo"), matched against loaded UPackage objects

Returns: { package_path: string, package_name: string, is_dirty: bool, objects: [{name, class}], object_count: int }

get_properties

Read-only

Read one or several named properties off ONE object you can already name -- an asset path, a live object's full path, a CDO/archetype, or a dotted "Actor[.Component[.Subobject]]" whose first segment is the actor's internal name -- typed rather than stringified, as { name: typed_value } plus each property's FProperty class and not_found[] for names the class does not declare. Pick it when you have the object and the names: get_object_info when you do not know the names yet, get_actor_properties_by_class when you have no path and want instances by class or label (it drops misspelled names; this reports them). property_name reads one; property_names batches several. A name can be a PATH into the value: "RelativeLocation.Z", "Items[2].Name", or through an object reference, "Layer.Settings.Size" (the object Layer points to); a path that does not resolve is in not_found[], and path_errors says at which segment and what is there. Accepts world (editor, server, client, pie:N), so the same read on server and client is the cheapest proof that a value replicated; the reply stamps which world answered. Read-only.

Parameter Type Required Description
object_path string yes Path or name of the object instance. In the editor world: full object path, asset path, CDO/archetype, an asset's sub-object as the readers give its object_path -- a graph node from get_graph_nodes, a sound cue node, a Niagara renderer or simulation stage, a PCG node's settings_path, a behavior tree node, a camera rig node, a Mass trait, a physics body -- also written "/Game/Asset:SubObject", or a dotted "Actor[.Component[.Subobject]]" whose first segment is the actor's INTERNAL name (editor labels are not matched here). In a live world: a fully-qualified PIE path or the same dotted form (first segment matches internal name OR editor label).
property_names array no Optional names of the properties to read, each a property name or a path ("Struct.Field", "Array[2].Field", "Reference.Property"); every name that does not resolve comes back in not_found[]. Required unless property_name is given.
property_name string no Optional single property name or path to read, added to property_names.
world string no Optional world selector: absent/'editor' (default: the editor/asset instance) | 'pie' (ambiguous: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'). Anything other than absent/'editor' reads the LIVE instance in that world; an UNRECOGNIZED value is an error naming the worlds that exist, never a silent fallback to another world.

Returns: { object_path: string, class_name: string, values: object (typed: bool/number/string natively, struct/map as object, array/set as array, object-ref as path string), property_types: object ({name: FProperty class name}), not_found: [string], path_errors?: object ({path: why it did not resolve}), world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }

get_struct_info

Read-only

Read the definition of a UScriptStruct (native or Blueprint-authored): its path and every member property as a typed descriptor. Use it to learn the FIELD NAMES before passing a struct as a JSON object to call_function / set_properties, or to read the row layout behind a DataTable. get_struct_members is the Blueprint-struct-authoring view of the same asset; get_enum_info is the enum equivalent.

Parameter Type Required Description
struct_name string yes Bare struct name resolved with FindFirstObject (e.g. "Vector", "S_ItemStructure"); an asset path is NOT accepted here

Returns: { struct_name: string, struct_path: string, properties: [<typed property descriptor>] }

list_derived_classes

Read-only

Enumerate every class derived from a base class (native + Blueprint, Widget and Anim Blueprints included) in any UObject hierarchy -- "what breaks if I change this base class?", or every subsystem of a lifetime family (base_class GameInstanceSubsystem, WorldSubsystem, EditorSubsystem...). The base may be a native class or a Blueprint asset. With loaded_only=false (default) it also surfaces not-yet-loaded Blueprint subclasses from the asset registry without loading them (loaded=false: no is_abstract/module/parent_class/lifetime, native_parent from the registry tag). include_native=false and package_path narrow it to the Blueprint assets under a content folder.

Parameter Type Required Description
base_class string yes Name/path of the base class (resolved via ResolveClass: bare name, /Script/ path, or Blueprint class/asset path); a name ResolveClass does not know is looked up as a Blueprint asset name under /Game, and when that name matches more than one asset the others are listed in ambiguous_matches.
include_blueprints boolean no Include Blueprint-generated (non-native) subclasses (default true)
include_native boolean no Include native C++ subclasses (default true); false lists only Blueprint classes
include_abstract boolean no Include classes flagged CLASS_Abstract (default false)
loaded_only boolean no If false (default), also queries the asset registry for Blueprint subclasses not currently loaded in memory
package_path string no Optional content folder (e.g. "/Game" or "/Game/Characters"): keep only Blueprint classes whose package lies under it. Native classes are not filtered by it.
max_results number no Optional cap on classes returned, 1..100000 (absent: no cap); results_truncated says whether any were left out

Returns: { base_class: string, base_class_path: string, ambiguous_matches?: [string], classes: [{class_name, path, is_blueprint, is_abstract?, module?, loaded, parent_class?, native_parent?, lifetime?, asset_name?, asset_path?, package?}], count: int, native_count: int, blueprint_count: int, results_truncated: bool, max_results?: int } -- asset_name/asset_path/package name the Blueprint ASSET of a Blueprint class (its generated "_C" class stripped); native_parent is the first native ancestor; lifetime (Editor, Engine, GameInstance, World, LocalPlayer or Unknown) only for a loaded USubsystem class.

list_enums

Read-only

List the enum types (UEnum) loaded in memory, native C++ and Blueprint user-defined, with their entries, without changing anything: per enum its name, path, owning module (C++ enums only) and entries [{name, value}], leaving out the _MAX sentinel and entries tagged Hidden. Unfiltered it matches every loaded enum, each with all its entries, so pass name_pattern or module_filter; the matches come sorted by path, a page at a time (offset/limit). module_filter matches C++ enums only, since a Blueprint enum has no module, and a Blueprint enum asset that is not loaded is not listed. No match gives count 0, not an error. For one enum's display names, which differ from the internal names on a Blueprint enum, use get_enum_info; structs: list_structs; author enums with create_enum and add_enum_entry.

Parameter Type Required Description
module_filter string no Optional plain substring of the owning module name, case-insensitive, no wildcards, e.g. "Engine" or "StateTreeModule"; matches C++ enums only.
name_pattern string no Optional plain substring of the enum name, case-insensitive, no wildcards, e.g. "Collision"; omitted or empty keeps every name.
offset integer no Index of the first entry returned, counted from 0 (default 0). Read the next page at the reply's next_offset.
limit integer no Most entries returned per call, 1..1000 (default 100).

Returns: { enums: [{enum_name, path, module?, entries:[{name, value}]}], count: int (entries in this page), total: int, offset: int, limit: int, returned: int, truncated: bool, next_offset: int|null }

list_instance_overrides

Read-only

List the property values a placed actor, and each of its components, holds as per-instance overrides in the level -- every property that differs from its archetype (the class defaults for the actor, the Blueprint's component template for a component) -- each with the archetype value beside it, plus the package that stores the actor (for a World Partition actor its own external .uasset) and whether that package is dirty. Use it to confirm that a write such as set_properties really landed on the instance (it catches an empty "()" stored where a gameplay tag was meant); to read named properties of any object use get_properties, and for every property of one component get_object_info. Read-only: it compares the loaded actor in the editor world, so with a dirty package the result is unsaved state (caveat says which). Properties the engine counts as equal but exports differently are counted in noise_counts and listed only with include_noise. An actor not found in the editor world, or one without an archetype, is an error.

Parameter Type Required Description
actor string yes Actor to audit: internal object name, editor label, or full object path, e.g. "BP_Door_C_3" or "Door_Main". Resolved in the EDITOR world, since a per-instance override is an editor/on-disk value, not a runtime one.
include_components boolean no Optional (default true). Also compare every component of the actor with its own archetype, the Blueprint's component template rather than the Blueprint class defaults (which hold no components).
require_edit boolean no Optional (default true). Only consider properties flagged CPF_Edit, i.e. what a human could actually have authored in the details panel. false widens to every reflected property.
include_transient boolean no Optional (default false). Include CPF_Transient / DuplicateTransient / NonPIEDuplicateTransient / Deprecated properties. They are never saved, so they are noise in an override audit.
include_noise boolean no Optional (default false). Also list, under noise[], the properties the engine considers EQUAL but whose exported text differs (FText localization identity, object outer). They are ALWAYS counted in noise_counts regardless.

Returns: { actor_path, actor_name, actor_label, actor_class, archetype_path, archetype_class, archetype_is_cdo, is_package_external, package_name, package_file, package_file_exists, package_dirty, overrides: [{property, kind, value, archetype_value, declaring_class, property_type, note, ...}], override_count, components: [{component, component_class, creation_method, archetype_path, archetype_is_cdo, overrides, override_count, noise?}], components_examined, component_override_count, total_override_count, properties_examined, skipped: {transient, not_edit, no_baseline}, noise_counts: object, noise_count: int, noise?: [...], caveat: string }

list_modules

Read-only

List the C++ modules the editor's module manager knows (FModuleManager::QueryModules) -- engine, editor, project and plugin modules, loaded or not -- each with name, file_path (its binary on disk), is_loaded and is_game_module, sorted by name and paged with offset/limit; optionally only names containing name_pattern, or only loaded ones. Use it to check that a module's code is present and loaded before relying on its classes; for a plugin's enabled state use get_plugin_status, and for the types a module defines list_derived_classes, list_structs or list_enums (Niagara stack modules are list_niagara_modules, a different thing). Read-only and idempotent: it loads or unloads nothing. No match gives count 0, not an error.

Parameter Type Required Description
name_pattern string no Optional plain substring of the module name, case-insensitive, no wildcards, e.g. "Niagara"; omitted or empty lists every module
loaded_only boolean no true keeps only the modules loaded right now (default false)
offset integer no Index of the first entry returned, counted from 0 (default 0). Read the next page at the reply's next_offset.
limit integer no Most entries returned per call, 1..1000 (default 100).

Returns: { modules: [{name, file_path, is_loaded, is_game_module}], count: int (entries in this page), total: int, offset: int, limit: int, returned: int, truncated: bool, next_offset: int|null }

list_objects_of_class

Read-only

Enumerate live instances of a class currently in memory, complementing get_actors_by_class (actors only) with any UObject-derived type. Accepts world to SCOPE the sweep to one world — 'server' vs 'client' is what separates an authoritative census from a replicated one, and without it a PIE session returns the instances of EVERY world mixed together (host and client both), which reads as duplicates. The response stamps the world that answered, so total:0 means "not in THIS world" instead of "does not exist". The instances come sorted by object_path, a page at a time (offset/limit).

Parameter Type Required Description
class_name string yes Name/path of the class to enumerate instances of (resolved via ResolveClass)
world_only boolean no Only include objects that resolve a UWorld via GetWorld() (default true). Ignored when world is given, which is already a stricter filter.
include_default boolean no Include each class's Class Default Object (default false). A CDO has no world, so passing world excludes CDOs regardless of this flag.
world string no Optional world selector that SCOPES the sweep: absent (default: every loaded instance, across all worlds) | 'editor' | 'pie' (ambiguous: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'). Only objects whose GetWorld() IS that world are returned; an UNRECOGNIZED value is an error naming the worlds that exist, never a silent fallback to another world.
offset integer no Index of the first entry returned, counted from 0 (default 0). Read the next page at the reply's next_offset.
limit integer no Most entries returned per call, 1..1000 (default 100).

Returns: { class_name: string, objects: [{object_path, name, class, outer}], count: int (entries in this page), total: int, offset: int, limit: int, returned: int, truncated: bool, next_offset: int|null, world: string ('any' when no selector was given), world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }

list_structs

Read-only

List the struct types (UScriptStruct) loaded in memory, native C++ and Blueprint user-defined, without changing anything: per struct its name, path, owning module (C++ structs only) and is_user_defined. Unfiltered it matches every loaded struct, thousands of them, so pass name_pattern or module_filter; the matches come sorted by path, a page at a time (offset/limit). module_filter matches C++ structs only, since a Blueprint struct has no module, and a Blueprint struct asset that is not loaded is not listed. No match gives count 0, not an error. Read one struct's fields with get_struct_info (by the struct_name given here) or a Blueprint struct's members with get_struct_members (by its asset path); enums: list_enums; author a struct with create_struct.

Parameter Type Required Description
module_filter string no Optional plain substring of the owning module name, case-insensitive, no wildcards, e.g. "CoreUObject" or "StateTreeModule"; matches C++ structs only.
name_pattern string no Optional plain substring of the struct name (no F prefix), case-insensitive, no wildcards, e.g. "Vector"; omitted or empty keeps every name.
offset integer no Index of the first entry returned, counted from 0 (default 0). Read the next page at the reply's next_offset.
limit integer no Most entries returned per call, 1..1000 (default 100).

Returns: { structs: [{struct_name, path, module?, is_user_defined}], count: int (entries in this page), total: int, offset: int, limit: int, returned: int, truncated: bool, next_offset: int|null }

poll_delegate_events

Read-only

Return the fires a subscribe_to_delegate subscription has recorded after cursor, oldest first, each with its sequence_id, a timestamp in seconds (FPlatformTime::Seconds) and the delegate's parameters as payload. It does not wait for new fires and does not consume what it returns, so the same cursor gives the same events again; pass next_cursor back to read only newer ones. Only the latest 512 fires per subscription are kept. subscription_active false means the target object is gone: recorded fires still come back, but no new ones will arrive. An unknown subscription_id is an error. unsubscribe_delegate ends the subscription; poll_gameplay_tag_events is the same reader for register_gameplay_tag_event.

Parameter Type Required Description
subscription_id number yes The subscription_id that subscribe_to_delegate returned, e.g. 3.
cursor number no Optional sequence_id: only fires with a higher one are returned; pass the previous reply's next_cursor. Default 0 returns every fire still kept.

Returns: { events: [{sequence_id, ts, payload}], next_cursor: int, subscription_active: bool }

set_properties

Destructive Idempotent Refused during PIE

Core tool: every client lists it by default.

Write one or several editable properties of one object in the editor world, as the Details panel does: an asset, a CDO, a placed actor, one of its components ("Actor.Component") or an asset's sub-object. Each write is undoable, dirties the package and re-registers the component; the reply lists what was set and what failed, with why.

Not for: a component in a live PIE world (set_component_property), a Blueprint's component template (set_blueprint_component_properties), a widget in a Widget Blueprint (set_widget_property), or a setter function (call_function).

Property names come from get_object_info. Example: {"object_path": "Sun.DirectionalLightComponent", "properties": {"Intensity": 10, "LightColor": {"R": 255, "G": 200, "B": 150}}}. A struct takes only the fields to change: {"RelativeLocation": {"Z": 200}} keeps X and Y.

A name can be a PATH: "RelativeLocation.Z", "Items[2].Name" (an existing element; to resize, write the whole array), or through an object reference: "Layer.Settings.Size". Every segment held by the written object must be writable.

A sub-object's asset is finished as its editor does it (a graph node reconstructed, a Niagara system recompiled...); no Blueprint is compiled. save=true saves an asset's package; refused for an object in a level (save_level). Refused before any write: a struct key that names no field, an unregistered gameplay tag, and any call during Play-in-Editor (see force).

Parameter Type Required Description
object_path string yes The object, resolved in the EDITOR world: an asset path, a full object path, a CDO/archetype, an asset's sub-object as the readers give its object_path -- a graph node from get_graph_nodes, a sound cue node, a Niagara renderer or simulation stage, a PCG node's settings_path, a behavior tree node, a camera rig node, a Mass trait, a physics body -- also written "/Game/Asset:SubObject", or "Actor[.Component[.Subobject]]" where Actor is an internal name or a unique label and Component a component name or a class only one component has.
properties object no Optional dict of {property_name or path: value}; values can be scalar, nested object, or array (UE-format text like "(X=1,Y=2,Z=3)" is also accepted for structs). Required unless property_name + value is given; both together write properties{} first.
property_name string no Optional single property, or path such as "Items[2].Name", to write (must be CPF_Edit and not EditConst, or it lands in failed[] with the reason). Needs value.
value any no Optional new value for property_name: string, number, boolean, JSON object (struct), JSON array (array/set/tag container), or a UE-format text string like "(X=1,Y=2,Z=3)"
save boolean no Save the asset's package after the writes (default false); refused, before anything is written, for an object in a level
clamp boolean no Clamp each number written to the ClampMin/ClampMax of its property, struct fields and array elements included (default false)

Returns: { object_path: string, resolved_path: string, set: [string], failed: [{property, error}], owning_asset?: string (a sub-object's asset), finished?: [string] (what ran on that asset), clamped?: [string] ("name=value", with clamp), saved?: bool, save_error?: string (with save), success: bool }

subscribe_to_delegate

Additive Idempotent

Start recording a dynamic multicast delegate (an event such as OnComponentHit or a Blueprint event dispatcher, with any number of parameters) of a live object: a rooted observer is bound to it and every fire is kept with its parameters as text, the latest 512 per subscription. It is the first of three steps: read the fires with poll_delegate_events (subscription_id plus a cursor), and stop with unsubscribe_delegate, which frees the observer; the subscription otherwise stays until the editor closes, and stops recording when the object goes away. Find event names with get_component_events, or get_event_dispatchers for a Blueprint; for gameplay tag count changes use register_gameplay_tag_event instead. It observes only: nothing in the object or level changes, and nothing is saved. Idempotent per resolved object and delegate: any spelling that resolves to the same object (its full path, "Actor.Component", the actor's name) and the same delegate property returns the existing subscription_id with already_existed=true, and the reply's object_path and delegate_name give the resolved pair; a target that no longer exists is subscribed afresh. An object that is not found, a delegate_name that is not a multicast delegate of its class, or a SPARSE engine delegate (OnComponentHit, OnComponentBeginOverlap, OnActorHit, OnTakeAnyDamage and the like, which would crash the editor) is an error and nothing is subscribed.

Parameter Type Required Description
object_path string yes Object owning the delegate: a full object path (an asset, or a live object's path, including a PIE actor's), the internal name of an editor-world actor ("BP_Door_C_1"), or "Actor.Component" for one of its components ("BP_Door_C_1.TriggerBox"). Bare names search the editor world only.
delegate_name string yes Exact name of the dynamic multicast delegate property on that object's class, e.g. "OnComponentBeginOverlap" or "OnDoorOpened", as get_component_events or get_event_dispatchers list it.

Returns: { subscription_id: int, signature: string, object_path: string, delegate_name: string, already_existed: bool }

unsubscribe_delegate

Destructive Idempotent

Remove a subscription: unbinds the observer from the delegate and frees it. Idempotent (removing an unknown/already-removed subscription_id is a no-op success, not an error).

Parameter Type Required Description
subscription_id number yes The id returned by subscribe_to_delegate

Returns: { removed: bool }