add_state_machine_transition
Connects two states in a Godot AnimationNodeStateMachine by adding a transition, so you can define source-to-destination state flow.
Instructions
Add a transition between two states in an AnimationNodeStateMachine.
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>",
"from": "<from>",
"to": "<to>"
},
"name": "add_state_machine_transition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination state name | |
| from | Yes | Source state name | |
| node_path | Yes | Path to the AnimationTree |