INNER CODE UNIT · Python

session_list_pages

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

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()
async def session_select_page(page_id: str) -> str:
    """Switch the active tab. Every other browser_* tool acts on it.

    Take the id from session_list_pages or from session_new_page."""
    return actions.select_page(await registry.ensure(), page_id)


@mcp.tool()
async def session_close_page(page_id: str = "") -> str:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…