cocos_add_spine
Attach Spine skeletal animation components to nodes in Cocos Creator scenes. Use this tool to add animated characters or objects after importing Spine assets with cocos_add_spine_data.
Instructions
Attach sp.Skeleton (Spine). Use cocos_add_spine_data to import assets first.
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_spine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| skeleton_data_uuid | No | ||
| default_skin | No | default | |
| default_animation | No | ||
| loop | No | ||
| time_scale | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |