plot_tyre_strategy
Visualise Formula 1 race or sprint tyre strategies as horizontal stint bars coloured by compound in finishing order and return a PNG image.
Instructions
Plot every driver's tyre strategy as horizontal stint bars coloured by compound, in finishing order. Returns a PNG image.
Use when the user asks to "show the strategies", "visualise the stints" or compare 1-stop vs 2-stop plans at a glance.
Args:
year: Season year (2018+)
event: Race name or round number
session: "R" (default) or "S" (sprint)
save_path: If True, also write the PNG to the export directory
(default ./fastf1-exports/); a string is a directory or
a full .png path.
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>",
"event": "<event>"
},
"name": "plot_tyre_strategy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| event | Yes | ||
| session | No | R | |
| save_path | No |