Skip to main content
Glama
Mehmoodqureshi

MCP Browser Extension

print_pdf

Render a Chrome page to PDF through the browser's print pipeline, save it to the task results folder, and return the file path and size.

Instructions

Render the page to PDF through Chrome's own print pipeline and save it to the task's results/ dir. Returns the path and size, not the bytes - a PDF is not something to spend context on.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scaleNo0.1 - 2.0
tabIdNoTab id (default: agent's tab)
landscapeNo
pageRangesNoe.g. '1-3, 5'
paperWidthNoInches
paperHeightNoInches
printBackgroundNoInclude background graphics (default true)
preferCSSPageSizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.24
    • changedInput schema / properties / tabId / description
      Previous value: -"Tab id (default: active tab)"New value: +"Tab id (default: agent's tab)"
  2. Changed1 schema field changedv0.9.5
    • changedInput schema / properties / tabId / description
      Previous value: -"Target tab id (defaults to the active tab)"New value: +"Tab id (default: active tab)"
  3. Addedv0.7.0

TDQS

B3.4/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. It usefully discloses the save location (task results/ dir) and return shape (path and size, not bytes), which is genuinely non-obvious. It says nothing about failure modes, whether it waits for rendering, or permissions, so it is only partially transparent.

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

Conciseness4/5

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

Two sentences, front-loaded with the action and destination, and the rationale for returning only metadata is compact. The trailing 'a PDF is not something to spend context on' is mildly editorial but justifies the return-value decision.

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

Completeness3/5

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

For an 8-parameter tool with no annotations and no output schema, the description does address the single most important unknown (what comes back and where it lands). However, it leaves error/blocking behavior and several parameters unexplained, so it is adequate but not complete.

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 75% (scale range, pageRanges example, paper units, tabId default are all documented) with 8 optional parameters. The description adds no parameter-level meaning at all, so it does not compensate for the undocumented options like landscape or preferCSSPageSize. Baseline 3 for high coverage.

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 PDF') and adds the mechanism ('through Chrome's own print pipeline') plus the destination (results/ dir). An agent can distinguish it from the sibling 'screenshot' tool without opening the schema, 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?

Usage is only implied: you reach for this when you want a PDF artifact of the current page rather than markdown, HTML, or an image. There is no explicit when-to-use/when-not guidance and no mention of alternatives like 'screenshot' or 'read_as_markdown'.

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