cocos_add_spine_data
Import Spine skeleton animation assets (.json, .atlas, textures) into Cocos Creator projects for use with spine animation components.
Instructions
Import Spine skeleton assets (.json + .atlas + textures).
Returns {skeleton_data_uuid, atlas_uuid, textures, dir}. Use skeleton_data_uuid with cocos_add_spine().
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": {
"project_path": "<project_path>",
"spine_json_path": "<spine_json_path>",
"atlas_path": "<atlas_path>"
},
"name": "cocos_add_spine_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| spine_json_path | Yes | ||
| atlas_path | Yes | ||
| texture_paths | No | ||
| rel_dir | No |