INNER CODE UNIT · Python
browser_close
feder-cr/Jobs_Applier_AI_Agent_AIHawk · src/aihawk/mcp/server.py:339
async def browser_close(browser: Browser = None) -> str:
"""Close one browser and free what it was holding.
The page it had is gone with it. The other browser is not touched.
Who it was is kept: browser_open with no arguments brings the same person
back. To be somebody else, pass a seed, a proxy or a profile.
"""
return await work.close(browser or DEFAULT_BROWSER_ID)
@mcp.tool(annotations=_says("List the browsers", read_only=True, open_world=False))
async def browser_list() -> str:
"""Which of the two browsers are open, where each one is, and which one
you are working in.
Answers JSON: `focus`, the browser your last command acted in, or "" when
none is open; `note`, which says how many are open and that a command