INNER CODE UNIT · Python

session_new_page

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

async def session_new_page() -> str:
    """Open a new tab and make it the active one. Returns its page id.

    Tabs persist across calls and across clients, so this is how you keep one
    page while working on another rather than navigating back and forth."""
    return await _retrying(actions.new_page)


@mcp.tool()
async def session_list_pages() -> str:
    """Every open tab: id, title, url, and which one is active.

    Use it before session_select_page: the id alone does not tell you which tab
    you are switching to."""
    return await actions.list_pages(await registry.ensure())


@mcp.tool()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…