INNER CODE UNIT · Python
session_start
feder-cr/Jobs_Applier_AI_Agent_AIHawk · src/aihawk/mcp/server.py:195
async def session_start(seed: int | None = None, proxy: str | None = None,
profile: str | None = None) -> str:
"""Start a browsing session as a particular person, and say who that is.
Call this when you want to control WHO is browsing: a fresh stranger, the
same person as last time, or a saved profile that is already logged in
somewhere. Calling it closes whatever browser is open and starts another,
so anything not saved in a profile is gone.
You do not have to call it at all. The first tool that needs a page starts a
session on its own; `session_status` then tells you who that turned out to
be.
There is only ONE browser. Two identities are visited in turn, never at the
same time, so a task that needs both accounts live at once cannot be done
here and is worth saying so rather than half-starting.
seed the browser identity. Same seed, same fingerprint, every time.