cocos_find_node_by_name
Locate nodes in Cocos Creator scenes by name to retrieve their array index for game development automation.
Instructions
Find the first node with the given name. Returns its array index, or None.
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": "<name>"
},
"name": "cocos_find_node_by_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |