ue5_call_function
Call any UFUNCTION on a UObject in Unreal Engine 5 via the Web Remote Control API. Use actor-level functions like SetActorScale3D for reliable remote execution.
Instructions
Calls a UFUNCTION on a UObject via the Web Remote Control API. IMPORTANT: Some functions on component sub-objects (e.g., LightComponent, RootComponent) are marked 'unavailable remotely'. Use actor-level functions like SetActorScale3D, SetActorTransform instead.
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": {
"objectPath": "<objectPath>",
"functionName": "<functionName>"
},
"name": "ue5_call_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectPath | Yes | The path to the UObject (e.g., '/Game/Maps/MyMap.MyMap:PersistentLevel.MyActor_1', or '/Script/UnrealEd.Default__EditorActorSubsystem' for editor subsystems). | |
| functionName | Yes | The name of the function to call. | |
| parameters | No | JSON object containing the function parameters. | |
| generateTransaction | No | If true, the operation can be undone with Ctrl+Z in the editor. Default: true for write operations. |