watch_replay
Watch a running F1 race replay for a set duration to capture position changes, pit stops, track-status alerts, and race-control messages. Call repeatedly for live commentary or race-engineer updates.
Instructions
Watch a running f1-race-replay for a few seconds and report what happened: position changes, pit entries/exits, track-status changes (SC/VSC/red flag), new race-control messages and laps completed.
Data source: f1-race-replay telemetry stream (localhost:9999)
Use for live commentary ("tell me what's happening"), or call it repeatedly to follow a replay like a race engineer. Combine with a faster playback speed to cover more of the race per call.
Args: duration_sec: How long to watch, in real seconds (1-60, default 10)
Returns: { "from": {"replayTime": "00:41:12", "lap": 23}, "to": {"replayTime": "00:42:52", "lap": 24}, "replaySecondsCovered": 100.0, "positionChanges": [{"driver": "NOR", "from": 4, "to": 3, "replayTimeSec": 2388.4}, ...], "netPositionChanges": [{"driver": "NOR", "from": 4, "to": 3}], "pitEntries": ["HAM"], "pitExits": [], "trackStatusChanges": [{"from": "GREEN", "to": "SC", "replayTimeSec": 2401.2}], "newRaceControl": [{"category": "SafetyCar", "message": "SAFETY CAR DEPLOYED", ...}], "leaderNow": "VER", "state": { ...same shape as get_replay_state (top 10)... } }
Note:
Messages are sampled four times a second, so a position swap that
reverts within ~0.25 s of real time can be missed.
positionChanges lists every change seen, in order (an overtake
that is later reversed appears twice); netPositionChanges
compares the start and end of the window. rewound is true if the
user scrubbed backwards; stalled is true if the stream went quiet
(replay paused or closed) before the window ended.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "watch_replay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration_sec | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||