-
Notifications
You must be signed in to change notification settings - Fork 0
end_browser
Quit the browser and free its Grid slot. Do this when finished.
| MCP tool | end_browser |
| HTTP | POST /browser/end |
Ends the browser, not your session. The session keeps the browser choice and the page you were on, so a later open_session() with no arguments picks up exactly where this left off — and any files the browser had are gone with it, because the Grid keeps them per browser.
Call it on failure paths too. Browsers are scarce and an abandoned one holds a Grid slot until it is reaped. Omit session_id to end the one this client has been using.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
session_id |
string | yes over HTTP | — | The session_id returned by /browser/open. Required here. |
| Field | Type | Notes |
|---|---|---|
success |
boolean | |
session_id |
string |
Errors are 400 for a bad argument, 401 without a token, 500 when the Grid
refuses. Over MCP the same failures arrive as a tool error.
MCP
end_browser()
HTTP
curl -X POST $SELENIUM_FLOW/browser/end \
-H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"session_id": "…"
}'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
Lifecycle
Going places
Doing things
Getting things out