add_state_machine_state
Add a state (animation, blend tree, or nested state machine) to an AnimationTree state machine with its name, animation, and graph position.
Instructions
Add a state (animation, blend tree or nested state machine) to an AnimationTree state machine at a graph position
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 | ||
| node_path | Yes | ||
| position_x | No | ||
| position_y | No | ||
| state_name | Yes | ||
| state_type | No | animation | |
| state_machine_path | No |