Breakpoint planner
plan_breakpointsPlan responsive breakpoints from content. Pass contentWidths (list of px widths where your layout starts to fail or needs to change, found by dragging the browser or frame), and optionally deviceTargets (px widths of devices you must support; these are checked against the result, never used to create breakpoints), minMeasure (default 45 characters) and maxMeasure (default 75) for text columns, fontSize (default 16), gutter (default 24), margin (default 24), maxColumns (default 3), and fluidMin and fluidMax (viewport range for the fluid rules, default 320 and 1440). Returns breakpoints (your content widths plus widths derived from how many columns at the minimum measure fit, and where one column reaches the maximum measure), a container max-width for each, ready CSS, fluid clamp() rules for body size, h1, gutter and page padding computed so they hit exact minimum and maximum at the range ends, a note for any two breakpoints within 10% of each other, and for each device target whether it is already near a breakpoint. Sources: Marcotte, Responsive Web Design (breakpoints follow the design). The 45 to 75 character measure, the 0.5em average character width and the 10% closeness test are conventions. Pure arithmetic, nothing stored.
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": {
"contentWidths": "<contentWidths>"
},
"name": "plan_breakpoints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gutter | No | Gutter in px (default 24). | |
| margin | No | Page margin per side in px (default 24). | |
| fluidMax | No | Viewport where fluid values stop (default 1440). | |
| fluidMin | No | Viewport where fluid values start (default 320). | |
| fontSize | No | Body size in px (default 16). | |
| maxColumns | No | Most text columns you will show (default 3, max 6). | |
| maxMeasure | No | Maximum characters per line (default 75). | |
| minMeasure | No | Minimum characters per line (default 45). | |
| contentWidths | Yes | Widths in px where the layout needs to change. Comma separated string also accepted. | |
| deviceTargets | No | Device widths to check against the result, for example [390, 768, 1280]. |