History
get_historyLogged history for one metric over a time range, optionally averaged per hour/day/week. Answers from the saved log only; never contacts the car.
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": {
"metric": "<metric>"
},
"name": "get_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ISO date/time end (default now) | |
| vin | No | Vehicle VIN (full, or its last 4-6 characters). Required when the account has more than one car (call list_vehicles first and ask the user which car). Optional with one car. Every car on the owner's Tesla account is covered by the plan. | |
| from | No | ISO date/time start (default 30 days ago) | |
| metric | Yes | ||
| resolution | No |