Skip to main content
Glama

browser_element_screenshot

Capture a screenshot of a specific webpage element by CSS selector, automatically scrolling it into view and saving a cropped PNG file.

Instructions

Screenshot a single element. Scrolls into view, captures, crops in the extension via OffscreenCanvas. Saves a PNG and returns its path (saved_to).

Args: selector: CSS selector of the element tab_id: Optional tab to target. Defaults to active tab. save_to: Optional file path (default: ~/claude-zen-screenshots/element_.png) data_url: Also return the PNG data URL (large - only if you really need the bytes inline) scale: 1-4 output pixels per CSS pixel. 2 = genuinely sharper capture at twice the size (needs extension 2.1.1+; older extensions ignore it)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scaleNo
tab_idNo
save_toNo
data_urlNo
selectorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses the scroll-into-view + OffscreenCanvas crop mechanics, that a PNG file is persisted, and that the return value is the saved path. This is meaningful behavioral context. It omits failure modes (e.g., element not found) and any permission/setup expectations, keeping it short of a 5.

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?

Front-loaded with a one-line purpose, then a compact mechanical note, then a tidy Args list. The list format is justified given the 0% schema coverage, though a couple of lines (e.g., the scale explanation) run slightly long.

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?

With no annotations and no output schema, the description covers the return value (saved_to path plus optional data_url) and the operational behavior. It is largely sufficient for correct invocation, missing only error/edge-case behavior and prerequisites.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must fully compensate, and it does: every one of the five parameters is documented with semantics and defaults (selector meaning, tab_id default-to-active, default save path, data_url size warning, scale meaning and extension-version requirement). This adds substantial value the bare schema cannot convey.

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 ('Screenshot') and a precisely scoped resource ('a single element'), which implicitly separates it from browser_screenshot and browser_full_page_screenshot. An agent can distinguish the element-level scope without opening any schema.

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?

No explicit when-to-use-this-vs-alternative statement; the element-scoping is implied rather than contrasted with the sibling screenshot tools. The only guidance present is parameter-level ('data_url: only if you really need the bytes inline'), which is useful but doesn't tell the agent when to pick this tool over the full-page variants.

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

Deploy Server

Other Tools