INNER CODE UNIT · Python

browser_watch

feder-cr/Jobs_Applier_AI_Agent_AIHawk · src/aihawk/mcp/server.py:367

async def browser_watch() -> Image:
    """The whole browser window as a person at the machine sees it: tab strip,
    address bar, the page and the pointer, from a live capture kept running on
    the active tab. For watching the work, not for acting on it: the picture
    is window pixels, so do not feed its coordinates to browser_click_at; use
    browser_take_screenshot for that."""
    jpeg = await actions.watch_jpeg(await registry.ensure())
    return Image(data=jpeg, format="jpeg")


# --- acting ----------------------------------------------------------------

@mcp.tool()
async def browser_click(selector: str) -> str:
    """Click the first element matching a CSS selector.

    Scrolls it into view and waits for it to be clickable. When no selector can
    describe the target, use browser_click_at with coordinates from

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…