responsive_scaling
Scale elements responsively to base size with min and max constraints, supporting px, rem, em, vw, and vh units.
Instructions
响应式缩放
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": {
"target": "<target>",
"baseSize": "<baseSize>"
},
"name": "responsive_scaling"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | px | |
| target | Yes | 目标元素选择器 | |
| maxSize | No | 最大尺寸 | |
| minSize | No | 最小尺寸 | |
| baseSize | Yes | 基础尺寸 |