call_library_function
Invoke a static or BlueprintCallable function on a class's Class Default Object using the class name or Blueprint path. Use for UKismetSystemLibrary, UGameplayStatics, etc. when no instance exists.
Instructions
Invoke a static / BlueprintCallable library function on a class's Class Default Object, addressing the class by NAME or by Blueprint asset path so you never have to hand-build a "Default__X_C" object path. This is the way to reach UKismetSystemLibrary, UGameplayStatics, UGameplayTagLibrary and any Blueprint Function Library when there is no instance to talk to. Arguments go in a dict named parameters (call_object_method uses args_json, call_component_function uses params), with the same marshaling: scalars, ENUM by entry name, STRUCT as a JSON object, ARRAY/set as a JSON array, FGameplayTag (validated) and FGuid. Note it always runs on the CDO and takes no world selector — use call_object_method(world=...) or call_component_function(world=...) for anything that must run inside a live PIE world.
Returns: { success: bool, class_name: string, class_path: string, function_name: string, returns_json: object ({ return_value?: any, out_params?: object }) }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Alias of `parameters` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `parameters`. | |
| params | No | Alias of `parameters` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `parameters`. | |
| args_json | No | Alias of `parameters` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `parameters`. | |
| class_name | Yes | Class NAME (bare/native e.g. "KismetSystemLibrary", /Script path, or a Blueprint asset path — resolved via ResolveClass; a Blueprint path yields its GeneratedClass). The function is invoked on this class's Class Default Object. | |
| parameters | No | Optional {param_name: value} dict. Same marshaling as call_function: scalars map directly; ENUM by entry name string; STRUCT param as a JSON object; ARRAY/set as a JSON array; FGameplayTag as {"TagName":"A.B"} (validated); FGuid as a hex/braced string. | |
| function_name | Yes | Name of the function to call (BlueprintCallable+Public or a BlueprintEvent). Static library functions and BlueprintPure getters work here. |