add_animation_state
Add an animation state to a specified state machine within an Unreal Engine Animation Blueprint, optionally assigning an animation asset, to streamline automated animation setup.
Instructions
Add an animation state to a State Machine.
Args: anim_blueprint_name: Animation Blueprint name state_machine_name: State machine name state_name: State name (e.g., "Idle", "Walk", "Run", "Jump", "Death") animation_asset: Optional animation sequence asset path
KB: see knowledge_base/05_ANIMATION_SYSTEM.md#overview Example: add_animation_state(anim_blueprint_name="/Game/MCP_Test/BP_Example", state_machine_name="ExampleName", state_name="ExampleName")
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": {
"anim_blueprint_name": "<anim_blueprint_name>",
"state_machine_name": "<state_machine_name>",
"state_name": "<state_name>"
},
"name": "add_animation_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state_name | Yes | ||
| animation_asset | No | ||
| state_machine_name | Yes | ||
| anim_blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |