Docs
Dashboard
SDKs / MCP serverBeta

browser_read

Read the current page as text.

Returns the page's title, URL and content as Markdown or plain text.

Inputs

NameTypeDefaultAllowed valuesDescription
sessionIdrequiredstring––The session's id, from session_create.
formatstringmarkdownmarkdown, textMarkdown keeps headings, links and lists. Text keeps only the words.

This tool works in a session with a browser. On a shell-only session (created with browser: false) it answers browser_disabled. See the three kinds of session.

sessionId is the id that session_create returned. The server keeps no default session. This tool only reads, so it never resumes a session: if the session is stopped, it says so and tells the model to call session_resume and try again.

Example call

This is what an MCP client sends. You do not write it yourself: ask the model in plain words and it calls the tool.

tools/call
{  "name": "browser_read",  "arguments": {    "sessionId": "6c1f3c9e-1d2a-4f67-9b0e-1b2c3d4e5f60",    "format": "markdown"  }}

What it returns

The title, the URL and the content.

Result
# Example Domainhttps://example.com/This domain is for use in documentation examples …

When a call fails, the result is marked as an error. Its text starts with the API’s error code, such as unauthorized or session_not_running, followed by its message.

Annotations

The server tells every client what this tool does to the world, so a client can decide what to ask you about before it runs.

AnnotationValue
titleRead the page
readOnlyHinttrue
destructiveHintfalse
openWorldHinttrue

Good to know

  • Long pages are cut at 40,000 characters.

The same thing with the API

EndpointReference
POST /v1/sessions/{id}/browser/actionsRun browser actions

These docs describe a beta API. Endpoints, fields and SDK methods may change before general availability; breaking changes will be listed in the changelog.