cocos_add_animation
Attach animation clips to nodes in Cocos Creator scenes to add movement and visual effects to game objects.
Instructions
Attach cc.Animation. clip_uuids is a list of AnimationClip asset UUIDs.
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": {
"scene_path": "<scene_path>",
"node_id": "<node_id>"
},
"name": "cocos_add_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| default_clip_uuid | No | ||
| play_on_load | No | ||
| clip_uuids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |