sensor.motion
Simulate device motion events with acceleration and rotation rate values to trigger shake detection, step counters, and accelerometer or gyroscope handlers in a page.
Instructions
Feed devicemotion: acceleration (m/s^2, gravity removed), acceleration_including_gravity (m/s^2) and rotation_rate (rad/s), each as {x,y,z}. For shake detection, step counters and anything reading the accelerometer or gyroscope rate.
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.motion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| acceleration | No | ||
| rotation_rate | No | ||
| acceleration_including_gravity | No |