Duration scale
plan_durationsPlan animation durations. Pass distance_px (how far the thing moves, 0 to 5000), size (small, medium, large, fullscreen), complexity (simple, moderate, complex) and optionally kind (enter, exit, state-change) and allow_long (true to lift the 400 ms UI cap for decorative or page-level motion). Returns a recommended duration, the enter and exit pair, a five-step token scale and the rationale. The formula is our own heuristic (stated in the output), shaped by common practice; it is an estimate to tune by eye, not a standard.
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": {
"distance_px": "<distance_px>"
},
"name": "plan_durations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | enter, exit or state-change | |
| size | No | Element size | |
| allow_long | No | Lift the 400 ms UI cap | |
| complexity | No | How many things move or change at once | |
| distance_px | Yes | Distance travelled in px, 0 to 5000 |