INNER CODE UNIT · Python
browser_navigate
feder-cr/Jobs_Applier_AI_Agent_AIHawk · src/aihawk/mcp/server.py:293
async def browser_navigate(url: str, wait_until: str = "domcontentloaded") -> str:
"""Go to a url in the active tab, opening one if none exists.
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 _retrying(actions.navigate, url, wait_until=wait_until)
@mcp.tool()
async def browser_read_text(selector: str = "body", max_chars: int = 6000) -> str:
"""The visible text of an element, with the markup gone.
The cheapest way to read a page. Narrow the selector when you know where the
answer is; use browser_read_html instead when the structure matters, or
browser_snapshot when you need something to click.