cocos_add_page_view
Add swipeable page navigation to Cocos Creator scenes. Configure horizontal or vertical scrolling direction, page turning speed, and scroll threshold for interactive UI components.
Instructions
Attach cc.PageView (swipeable pages). direction: 0=H, 1=V.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| content_id | No | ||
| direction | No | ||
| scroll_threshold | No | ||
| page_turning_speed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |