add_state_machine_transition
Add a transition between two states in a Godot AnimationTree state machine, specifying switch mode, advance mode, and optional advance expression.
Instructions
Add a transition between two states (Start/End accepted) with switch mode, advance mode and an optional advance expression that needs advance_expression_base_node set on the 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>",
"from_state": "<from_state>",
"to_state": "<to_state>"
},
"name": "add_state_machine_transition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_state | Yes | ||
| node_path | Yes | ||
| from_state | Yes | ||
| xfade_time | No | ||
| switch_mode | No | immediate | |
| advance_mode | No | enabled | |
| advance_expression | No | ||
| state_machine_path | No |