Skip to main content
Glama
andresolbach

nodriver-mcp-server

Get page content

get_page_content
Read-only

Extract a webpage's visible text or full HTML for reading content directly, without building an accessibility tree. Write large pages to a file to avoid output limits.

Instructions

Get the page's visible text, or its full HTML.

The cheapest way to read a page when you only need content and not the uids take_snapshot provides: no accessibility tree is built, and the text form carries no markup overhead.

Returns the DOM as it stands right now, so on pages that render asynchronously call wait_for or wait_for_selector first.

Use take_snapshot when you intend to interact with elements, and query_selector when you want specific elements rather than the whole page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNo"text" returns document.body.innerText — visible text without markup, which is what you want for reading. "html" returns the full outerHTML including scripts and attributes, needed when you care about markup, data- attributes or hidden field values.text
file_pathNoWrite the content to this local path instead of returning it — the way to capture a large page without flooding the conversation.
max_charsNoTruncate the output at this many characters. 0 means no limit, which is risky on large pages — especially with format="html".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark readOnlyHint true and destructiveHint false, and the description adds valuable behavioral context beyond that: it states that no accessibility tree is built, that text form carries no markup overhead, and that the DOM is returned as it currently stands, which explains potential async staleness. This aligns with idempotentHint false and enriches the agent's understanding of side-effect-free read behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded with the core purpose, followed by efficiency context, an async warning, and explicit sibling guidance. Every sentence earns its place; no filler or redundant repetition of schema/annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only tool with three optional, well-documented parameters and an output schema, the description covers all necessary operational context: when to use it, the performance trade-offs, the async rendering caveat, and how it differs from siblings. There are no significant gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema covers 100% of parameters with detailed descriptions (format enum, file_path, max_chars). The tool description adds only marginal parameter-related context, like 'text form carries no markup overhead,' but this is more behavioral than a semantic explanation of each argument. Since schema coverage is high, baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Get the page's visible text, or its full HTML.' It clearly distinguishes the tool from siblings by naming take_snapshot and query_selector as alternatives for interactive or element-specific needs, making the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit when-to-use guidance: it is the cheapest way to read content when not needing uids, and it advises calling wait_for or wait_for_selector first on async pages. It also names alternatives, saying to use take_snapshot for interaction and query_selector for specific elements, which is a clear yes/no usage framework.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/andresolbach/nodriver-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server