cocos_get_object_count
Count total objects in Cocos Creator scene or prefab JSON arrays to manage game assets and verify structure during automated development.
Instructions
Return the total number of objects in the scene/prefab JSON array.
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>"
},
"name": "cocos_get_object_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |