INNER CODE UNIT · Python

browser_read_html

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

async def browser_read_html(mode: str = "form") -> str:
    """The page's HTML, cleaned down to what is worth reading.

    Use this when the STRUCTURE matters - a form and its labels, a table, what
    a control is wired to. `browser_snapshot` gives a flat inventory of things
    to click; this keeps the markup and the relationships inside it.

    mode="form" keeps the interactive surface and the text explaining it,
    mode="text" returns the prose alone, mode="full" keeps the structure with
    the noise and the attribute soup removed.

    Unlike browser_read_text this is NOT capped: it returns the whole reduced
    page, which on a large one is tens of thousands of characters. That is
    deliberate, because cutting markup in the middle leaves tags that no longer
    mean anything - but it means the answer can be long. Reach for
    browser_snapshot when you only need something to click, or
    browser_read_text when you only need the words.
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…