#!/usr/bin/env bash
# Begin in links.md Preview; run identically on base and head.
set -euo pipefail
side="$1"; session="$2"; output="$3"
agent-device record start "$output/$side-tap-raw.mp4" --hide-touches --session "$session"
# Center of the first inline file link on the matched Pixel 9 viewport.
agent-device press 260 319 --settle --session "$session"
agent-device screenshot "$output/$side-destination-raw.png" --session "$session"
agent-device record stop --session "$session"
