cocos_add_pulse
Add a subtle looping scale animation to UI elements to draw attention during idle states. Configure pulse strength and timing for natural visual feedback without manual coding.
Instructions
Looping subtle scale pulse — attention-grabber for idle UI.
strength: how much bigger at peak (0.08 = 8%). Keep subtle;
above ~0.15 looks anxious.
period: one cycle in seconds. 1.0-1.5 reads as a relaxed
heartbeat; below 0.5 feels panicked.
Clip loops forever — attach and forget.
Returns {clip_uuid, clip_path, anim_component_id}.
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_pulse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| strength | No | ||
| period | No | ||
| rel_dir | No |