get_gaps
Retrieves each driver's gap to the race leader and car ahead in seconds at the start of every lap (1–4 drivers, OpenF1 2023+), helping show closing rates, undercuts, or a growing lead.
Instructions
Gap to the race leader and to the car ahead, in seconds, at the start of each lap for 1-4 drivers (OpenF1, 2023+). Use it to show who was closing, an undercut working, or a lead growing. every = lap step.
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": {
"year": "<year>",
"country": "<country>",
"drivers": "<drivers>"
},
"name": "get_gaps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| every | No | ||
| country | Yes | ||
| drivers | Yes | ||
| session_name | No | Race |