INNER CODE UNIT · Python

session_status

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

async def session_status() -> str:
    """Who is browsing right now: the identity, the exit, the profile and the tabs.

    Ask whenever you need to know which person the browser currently is, or from
    where its traffic leaves. The seed is what you would pass to `session_start`
    to become this person again, so this is also how you record a session that
    is worth repeating.

    It starts nothing. If no browser is running yet it says so, because until
    one is running there is no identity to report.
    """
    config = registry.config()
    if config is None:
        return ("no browser is running yet, so there is no identity to report. "
                "The next tool that needs a page will start one, or call "
                "session_start to choose who it is.")

    session = registry.peek()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…