sensor.path
Simulate a head-movement path in a browser page to test interpolation, recentring and gaze-dwell logic that a single static reading cannot exercise.
Instructions
Play a head movement in real time, interpolated smoothly at up to 120 Hz, and return when it finishes: a preset (look-around, nod, spin, hold) relative to a base pose, or keyframes (head yaw/pitch/roll from the pose, or absolute angles). The only way to test smoothing, recentring and gaze-dwell logic, which a single static reading cannot exercise. For a realistic phone add jitter_deg / drift_deg_per_min (Chrome drops deviceorientation changes under 0.1 deg, so a perfectly still virtual phone looks dead) and motion:true to stream matching devicemotion. At most 60 seconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sensor.path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hz | No | Samples per second, 1-120. Default 60. | |
| pose | No | Base pose. Default landscape-left, a phone in a headset. | |
| seed | No | Noise seed, so a noisy run replays identically. Default 1. | |
| motion | No | Also stream devicemotion consistent with the path: gravity in device axes and the rotation rate. Default false. | |
| preset | No | look-around (yaw sweep), nod (pitch), spin (full turn), or hold (stay on the pose; pair with jitter/drift). | |
| absolute | No | ||
| amplitude | No | Degrees of swing for a preset. Default 45. | |
| keyframes | No | Poses at times from the start: a head turn (yaw/pitch/roll, degrees from the base pose; pitch -30 looks down) or absolute angles (a missing one keeps the base pose value). Not both in one frame. Repeat a pose at two times to hold it, e.g. to dwell on a gaze target. | |
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. | |
| jitter_deg | No | RMS sensor shake added to every sample, 0-5 degrees. Real phones: about 0.02-0.3. | |
| duration_ms | No | Length of a preset. Default 4000. | |
| drift_deg_per_min | No | Slow yaw creep, as an uncorrected gyro has. Real phones: about 0.1-10. |