list_drivers
Retrieve Formula 1 drivers for any season from 1950 onward, with optional filtering by specific race events for detailed participation data.
Instructions
List all drivers in a season, optionally filtered to a specific event.
Data source: Ergast API (season list) or FastF1 session (event filter) Coverage: 1950-present (season); 2018-present (event filter)
Args: year: Season year event: Optional race name or round number to filter by event (returns only drivers who participated in that session)
Returns: Drivers with: code, fullName, nationality, team, number
Example: list_drivers(2024) → [ {"code": "VER", "fullName": "Max Verstappen", "nationality": "Dutch", "team": "Red Bull Racing", "number": "1"}, ... ]
Note: When event is provided, data comes from FastF1 session results (requires year >= 2018). Without event, uses Ergast season data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| event | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |