ue5_spawn_actor
Spawn an actor in an Unreal Engine 5 level by providing a static mesh asset path or an actor class, with optional location and rotation.
Instructions
Spawns an actor in the level from a static mesh asset or an actor class. Use objectPath for static meshes (e.g., '/Engine/BasicShapes/Cube.Cube') or actorClass for native classes (e.g., '/Script/Engine.DirectionalLight').
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ue5_spawn_actor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectPath | No | Asset path of the static mesh to spawn (e.g., '/Engine/BasicShapes/Cube.Cube'). Mutually exclusive with actorClass. | |
| actorClass | No | Class path of the actor to spawn (e.g., '/Script/Engine.DirectionalLight'). Mutually exclusive with objectPath. | |
| location | No | Spawn location { X, Y, Z }. Default: origin. | |
| rotation | No | Spawn rotation { Pitch, Yaw, Roll }. Default: zero. |