physics_draggable
Create draggable UI elements with physics-based inertia and throw properties. Control drag axes, bounds, and enable realistic motion.
Instructions
拖拽交互动画 (惯性功能需要ThrowPropsPlugin 🔒)
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": {
"selector": "<selector>"
},
"name": "physics_draggable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | x,y | |
| bounds | No | 边界限制选择器 | |
| inertia | No | 启用惯性 | |
| selector | Yes | 可拖拽元素选择器 | |
| throwProps | No | 启用抛掷属性 |