add_state_machine_state
Adds a named state to an AnimationNodeStateMachine within a Godot AnimationTree, optionally assigning an animation clip.
Instructions
Add a state to an AnimationNodeStateMachine inside an AnimationTree.
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": {
"node_path": "<node_path>",
"state_name": "<state_name>"
},
"name": "add_state_machine_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| animation | No | Animation clip to assign to the state | |
| node_path | Yes | Path to the AnimationTree | |
| state_name | Yes | Name for the new state |