INNER CODE UNIT · Python
browser_list
feder-cr/Jobs_Applier_AI_Agent_AIHawk · src/aihawk/mcp/server.py:351
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
naming no browser goes to `main`; and `browsers` - each row `id`, `url`
(the page it is on) and `urls` (every page it holds, which is more than
one only when a site opened one). Only open browsers are listed, so every
row is one you can act on.
Starts nothing: it reports what is open, so asking is free.
"""
# ⛔ JSON, WHERE THIS ANSWERED PROSE UNTIL 0.18.0, and the reason is the
# stated architecture rather than taste: the interface is a client of these
# tools like anybody else, with no privileged path, so a workspace that has
# to draw one pane per browser needs this question answered in a shape a
# program can read. The alternative was the page parsing a sentence, which