cocos_add_slider
Add a slider component to a Cocos Creator node for interactive value adjustment, with configurable direction, progress, and slide event handlers.
Instructions
Attach cc.Slider. slide_events: list from cocos_make_event_handler().
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_slider"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| direction | No | ||
| progress | No | ||
| slide_events | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |