Skip to main content
Glama

tabs_capture_screenshot

Capture a screenshot of the visible Firefox tab or a specified tab, returning it as a base64 data URL or saving it to disk by filename. Requires a profile ID from profiles_list.

Instructions

Capture a screenshot of the visible tab, or of the tab given by tab_id

What comes back depends on whether you pass a filename: with one, the image is written to disk and you get a success message and the path; without one, you get the image inline as a base64 data URL, which for a full window is large.

profile_id is required: obtain it from profiles_list. All object IDs are local to that profile; never reuse them in another profile.

Input Schema

NameRequiredDescriptionDefault
formatNoImage format ('png' or 'jpeg', default: 'png')png
tab_idNoCapture this tab, even in the background (not with window_id)
qualityNoImage quality for JPEG format (1-100, default: 90)
filenameNoName of the file to save the screenshot (optional, if not provided returns base64)
window_idNoID of the window to capture (optional, defaults to current window)
profile_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden and does well: it discloses that a filename writes the image to disk and returns a success message plus path, while omitting it returns an inline base64 data URL and may be large. It also warns that profile-scoped object IDs must not be reused across profiles.

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?

The description is front-loaded with the purpose, then covers return behavior and required profile context in three tight paragraphs. Every sentence adds useful operational detail without waste.

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?

The tool has an output schema and high schema coverage, and the description still usefully explains output modes and profile requirements. It is nearly complete, though the prose does not mention window_id capture even though the schema includes it.

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

Parameters4/5

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

Schema coverage is high at 83%, so the schema already documents most parameters. The description adds useful semantics for profile_id sourcing, local object ID scope, and filename-dependent output behavior, though it does not elaborate on format or quality beyond the schema.

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 uses a specific verb and resource: "Capture a screenshot" of a tab. It clearly distinguishes between capturing the visible tab and capturing the tab identified by tab_id, so an agent can understand the core action immediately.

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?

It explains the key usage split between passing a filename and omitting one, including the resulting return behavior. It also states that profile_id is required and must come from profiles_list, but it does not explicitly name alternatives or exclusions.

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