Skip to main content
Glama
andresolbach

nodriver-mcp-server

Save page as PDF

save_pdf

Export the current page to a PDF file using Chrome's print-to-PDF, capturing the entire document with print styles applied for archiving.

Instructions

Export the current page to a PDF using Chrome's print-to-PDF.

Renders the entire document rather than just the viewport, and applies the page's print stylesheet — so the result can differ from the screen layout.

A good way to archive a rendered page as one file. For a pixel-accurate copy of what is on screen, use take_screenshot with full_page instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
browserNoWhich browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name.default
file_pathYesLocal path to write the .pdf file to.
landscapeNoUse landscape orientation instead of portrait.
print_backgroundNoInclude background colours and images. Default true, which resembles the page as seen on screen; false gives the leaner print view.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.0
    • addedInput schema / properties / browser
      Added value: +{
      +  "default": "default",
      +  "description": "Which browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name.",
      +  "type": "string"
      +}
  2. First observedv1.7.2

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations, it discloses that the output covers the full document rather than the viewport and that the print stylesheet can make the result differ from the screen layout. This is meaningful behavioral context. It does not mention potential file overwriting, but the schema and annotations cover the core mutation profile.

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?

Three short sentences, each earning its place. The primary action is front-loaded, followed by key behavioral caveats and a clear alternative. There is no filler or repetition of schema content.

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 tool with four well-documented parameters and an output schema, the description supplies the essential behavioral nuances that the schema cannot: full-document rendering, print stylesheet application, and the distinction from take_screenshot. Nothing critical is missing for correct tool selection and invocation.

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?

Schema description coverage is 100%, so the parameters are already fully documented in the schema. The description does not need to add parameter-level detail, though it implies the output is a PDF file. This is the expected baseline: the schema does the heavy lifting.

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 states a specific verb and resource: 'Export the current page to a PDF using Chrome's print-to-PDF.' It further distinguishes itself from take_screenshot by clarifying that it renders the entire document and applies the print stylesheet, so an agent can tell what the tool produces beyond the name.

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 explicitly positions the tool as 'a good way to archive a rendered page as one file' and directs agents to take_screenshot with full_page instead when a pixel-accurate copy is needed. This provides clear when-to-use and when-not-to-use guidance with a named alternative.

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