Generate Clamp Tool
generate_clampCalculate a fluid CSS clamp() expression for responsive sizing between two viewport widths. Pure calculation — returns a CSS snippet, writes and stores nothing.
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": {
"min_fs": "<min_fs>",
"max_fs": "<max_fs>"
},
"name": "generate_clamp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Root font-size in px for rem conversion (default 16). | |
| unit | No | Output unit (default rem). | |
| max_fs | Yes | Maximum size in px. | |
| max_vw | No | Viewport width at max_fs (default 1440). | |
| min_fs | Yes | Minimum size in px. | |
| min_vw | No | Viewport width at min_fs (default 320). |