"""Probe specific physical coordinates and print ALL results."""
import requests

HOST = "http://127.0.0.1:8765"

coords = [
    (944, 321),  # estimated physical Add button
    (944, 310),
    (944, 330),
    (920, 321),
    (960, 321),
    (870, 321),
    (900, 321),
    (990, 321),
    (944, 340),
    (944, 350),
    (944, 360),
    (944, 400),
    (944, 450),
    (944, 500),
]

print("Probing specific positions:")
for x, y in coords:
    r = requests.post(f"{HOST}/info-at", json={"x": x, "y": y}, timeout=5)
    d = r.json()
    f = d.get("found", {})
    print(f"  ({x},{y}): role={f.get('role')!r:22} name={f.get('name')!r:20} bounds={f.get('bounds')}")
