cocos_add_page_view_indicator
Add a visual indicator to track page position in Cocos Creator PageView components. Attach a row of dots that automatically updates as users navigate between pages.
Instructions
Attach cc.PageViewIndicator — dots row that tracks PageView position.
Attach to a child of the PageView node. Engine auto-spawns one
indicator sprite per page using sprite_frame_uuid as template.
direction: 0=HORIZONTAL (default), 1=VERTICAL.
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_page_view_indicator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| sprite_frame_uuid | No | ||
| direction | No | ||
| cell_width | No | ||
| cell_height | No | ||
| spacing | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |