List a device's positions
list_device_positionsRetrieve a device's recorded positions within a specified time window, 24 hours by default, to review where it has been.
Instructions
List a device's positions
Returns the positions a device recorded within a time window, 24 hours by default. Use it for where
a device has been; for where it is now, use get_device with include=last_position.
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": {
"deviceId": "<deviceId>"
},
"name": "list_device_positions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 1. Must be at least 1. | |
| sort | No | Sort on location_at, prefixed with - for descending. | |
| deviceId | Yes | The device id, from `list_devices`. | |
| per_page | No | Results per page. Defaults to 50, capped at 100. Must be at least 1. Must not be greater than 100. | |
| location_after | No | Start of the window on the time the device recorded the fix. Defaults to 24 hours before location_before. Must be a valid date. | |
| location_before | No | End of the window on the time the device recorded the fix. Defaults to now. Must be a valid date. Must be a date after or equal to <code>location_after</code>. |