Skip to main content
Glama

Print page to PDF

print_to_pdf

Render a specified Chrome tab to a PDF file and return the saved path, useful for saving receipts, reports, or invoices.

Instructions

Render the page to a PDF (CDP Page.printToPDF) and save it under ~/.claude-chrome-mcp/pdfs/. Good for receipts/reports/invoices. Returns the saved path.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tabId": "<tabId>"
    },
    "name": "print_to_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNoScale 0.1–2 (default 1)
tabIdYesTarget tab ID (must be in the MCP group)
landscapeNoLandscape orientation (default false)
printBackgroundNoInclude background graphics (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key side effect: a file is written to ~/.claude-chrome-mcp/pdfs/ and the path is returned. It does not say how the file is named, whether an existing file is overwritten, or whether print media / async render completion is awaited — important for a write-to-disk operation.

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: action, destination, use cases, return value. Nothing is wasted and the primary action is front-loaded.

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

Completeness4/5

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

A simple 4-parameter tool with full schema coverage and no output schema; the description covers the action, the on-disk effect, and the return value, which is enough for correct invocation. Only file-naming and overwrite semantics are left open.

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 scale, landscape, printBackground, and tabId are already documented with defaults and bounds. The description adds no parameter-level meaning such as how scaling interacts with page width or what the MCP group constraint implies.

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

Purpose4/5

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

States a specific verb and resource ('Render the page to a PDF') and adds the underlying mechanism (CDP Page.printToPDF) plus the destination. It is clearly distinguishable from sibling readers like read_page or get_page_text, which only extract content, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

'Good for receipts/reports/invoices' gives an implied use case, which is useful framing for an agent. There is no explicit when-not guidance and no named alternative (e.g., a download or screenshot path), so the agent must infer boundaries.

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