vision_calculate_dwell
Calculates dwell progress for a pointer inside a target zone, returning normalized progress, trigger state, remaining time, and dwell status for gesture-controlled selection.
Instructions
Evaluates dwell progress for a pointer inside a target interactive bounding box zone. Returns normalized progress (0.0 to 1.0), trigger state, remaining time, and dwell status.
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": {
"x": "<x>",
"y": "<y>",
"zone": "<zone>"
},
"name": "vision_calculate_dwell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Pointer X coordinate (normalized 0.0 - 1.0 or pixel space). | |
| y | Yes | Pointer Y coordinate (normalized 0.0 - 1.0 or pixel space). | |
| zone | Yes | Target zone bounding box as {'x', 'y', 'width', 'height'} or [x, y, w, h]. | |
| elapsed_ms | No | Elapsed dwell time inside zone in milliseconds (default: 0.0). | |
| duration_ms | No | Target dwell trigger duration in milliseconds (default: 1000.0). |