add_anim_graph_node
Adds a node to an O3DE animation graph, selecting its type and optional parent, name, and canvas position. Returns the created node or rejects unknown node types.
Instructions
Add a node to an anim graph.
Returns the new node object exactly as get_anim_graph emits it. An
unknown node_type is refused with the list of known types.
Args:
anim_graph_id: Graph id (number or digit string).
node_type: RTTI or palette name, case-insensitive (for example
AnimGraphMotionNode, AnimGraphStateMachine, BlendTree,
BlendTreeBlend2Node).
parent_id: Parent node id (a state machine or blend tree). Defaults to
the root state machine.
name: Node name. The engine generates one when omitted.
position: [x, y] graph-canvas position in integer pixels.
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_graph_id": "<anim_graph_id>",
"node_type": "<node_type>"
},
"name": "add_anim_graph_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| position | No | ||
| node_type | Yes | ||
| parent_id | No | ||
| anim_graph_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |