-
Notifications
You must be signed in to change notification settings - Fork 0
current_session
What this session is, and whether it holds a browser.
| MCP tool | current_session |
| HTTP | GET /browser |
The browser session this client is currently using.
Returns the session name, which browser it is, the page it is on, the window size as WxH, whether it is inside a frame, and whether a browser is currently open (live). Read it before judging anything about layout — the window is not a fixed size and is what decides whether something is off-screen.
Reading this never opens a browser: live is false when none is held yet.
This action takes no parameters.
Every call names its session: an X-Session-Key header, or ?session=<name>.
Sending both is refused. See Sessions.
| Field | Type | Notes |
|---|---|---|
session |
string | The name you called with. |
named_by |
string | Which mechanism supplied the name. |
browser |
string | |
url |
string | The page it is on. |
live |
boolean | Whether a browser is open for this session. |
in_frame |
boolean | |
window |
string | Window size as WxH, when one is known. |
store |
string | |
settings |
object | |
guidance |
string | The skill reference that explains sessions. |
| Status | Means |
|---|---|
400 |
No session named, or two names given. |
401 |
Missing or wrong bearer token. |
Over MCP the same failures arrive as a tool error.
MCP
current_session()
HTTP
curl -X GET $SELENIUM_FLOW/browser \
-H "Authorization: Bearer $TOKEN" \
-H "X-Session-Key: $SESSION"The action pages are generated from openapi.yaml, which is itself generated from the live MCP tool schemas — so they describe the server that shipped, not the one someone remembered. Prose belongs in wiki-notes/<tool>.md in the repo.
selenium-flow · MIT
Start here
Guides
Lifecycle
Going places
Doing things
Getting things out