INNER CODE UNIT · Python

browser

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

                           browser: Browser = None) -> str:
    """Go to a url in this browser's page, opening it if none exists.

    Answers with the HTTP status the server gave and the url actually landed
    on, which is not always the one asked for: a redirect to a login wall or a
    regional domain shows up here. Read the status before trusting the page -
    a 404 or a 403 still has a document, and reading it as content is the
    mistake this reply exists to prevent.

    wait_until is "domcontentloaded" by default, which returns as soon as the
    markup is parsed. Use "load" when the page needs its images and stylesheets,
    or "networkidle" for a single-page app that fetches its content after
    load."""
    return await work.acting(actions.navigate, url, wait_until=wait_until,
                             role=browser)


@mcp.tool(annotations=_says("Read the page text", read_only=True))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…