INNER CODE UNIT · Python
browser_snapshot
feder-cr/Jobs_Applier_AI_Agent_AIHawk · src/aihawk/mcp/server.py:462
async def browser_snapshot(max_chars: int = 0, browser: Browser = None) -> str:
"""Title, url, and the interactive elements that are actually visible.
Each element carries a `selector` when one can reach it: pass that string to
browser_click or browser_type VERBATIM rather than writing your own. It is
built to match exactly ONE element, which the obvious selector often does
not, and the driver acts on the first match - so a caller aiming at the
third of five identical links would silently hit the first and be told it
succeeded.
Elements with no `selector` carry `at`, the centre coordinates, for
browser_click_at.
It lists what a caller can act on, and it is not the accessibility tree:
one country `<select>` would otherwise fill the answer with its options
before the form you were looking for appears.
"""
# ⛔ THE MEASUREMENTS BEHIND THE TWO PARAGRAPHS ABOVE LIVE IN `actions.py`,