Skip to main content
Glama

browser_take_screenshot

Read-only

Capture a screenshot of the current browser page or a specific element, saving it as PNG, JPEG, or WebP. Use it to visually document pages you are browsing without switching tools.

Instructions

Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.

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": {
      "scale": "<scale>"
    },
    "name": "browser_take_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoDefault: from filename, else png
scaleYescss pixels (smaller) or device pixelscss
targetNoSnapshot ref or unique selector
elementNoElement description for the approval prompt
filenameNoWorkspace-relative file; default page-{timestamp} in the output dir
fullPageNoFull scrollable page; not with target

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.8.0
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / element / description
      Previous value: -"Human-readable element description used to obtain permission to interact with the element"New value: +"Element description for the approval prompt"
    • changedInput schema / properties / filename / description
      Previous value: -"File name to save the screenshot to. Relative file names are resolved against the workspace root. If not specified, the screenshot is saved into the output directory as `page-{timestamp}.{png|jpeg|webp}`."New value: +"Workspace-relative file; default page-{timestamp} in the output dir"
    • changedInput schema / properties / fullPage / description
      Previous value: -"When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Cannot be used with element screenshots."New value: +"Full scrollable page; not with target"
    • changedInput schema / properties / scale / description
      Previous value: -"Image resolution scale. \"css\" produces a screenshot sized in CSS pixels (smaller, consistent across devices). \"device\" produces a high-resolution screenshot using device pixels (larger, accounts for the device pixel ratio). Default is css."New value: +"css pixels (smaller) or device pixels"
    • changedInput schema / properties / target / description
      Previous value: -"Exact target element reference from the page snapshot, or a unique element selector"New value: +"Snapshot ref or unique selector"
    • changedInput schema / properties / type / description
      Previous value: -"Image format for the screenshot. If unset, inferred from the filename extension, otherwise png."New value: +"Default: from filename, else png"
  2. Addedv0.4.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true), so the bar is lower, and the description adds the non-obvious constraint that the returned image cannot be used to drive subsequent actions. It does not say what the tool returns (inline image data vs. a file path) or that target/element capture is scoped to a visible region, which are minor remaining gaps.

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?

Two short sentences, the core action first and the critical limitation plus sibling pointer second. Nothing is redundant or padded.

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?

For a six-parameter read-only capture tool with full schema coverage and no output schema, the definition covers what the tool does and where it must not be used. A sentence on the return value (image content or saved file) would close the last gap.

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%, including enum values and defaults for type and scale, so the schema already carries parameter meaning. The description adds no parameter-level detail such as how target refs relate to browser_snapshot refs, so the baseline 3 applies.

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?

States a specific verb and resource ("Take a screenshot of the current page") and immediately distinguishes itself from browser_snapshot by declaring that its output is not actionable. An agent can tell which of the two visual-capture siblings to pick without inspecting either schema.

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

Usage Guidelines4/5

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

Gives a clear negative rule ("can't perform actions based on the screenshot") and names the alternative (browser_snapshot) that should be used for acting. It lacks an explicit positive when-to-use case, e.g. verifying layout or visually confirming a change, but the routing guidance is unambiguous.

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