Skip to main content
Glama

Screenshot GPM Browser

gpm_browser_screenshot

Capture the current browser tab as PNG or JPEG—viewport, full page, or a specific element—and return it for AI inspection, with optional saving to disk.

Instructions

Chụp ảnh màn hình tab hiện tại (viewport, toàn trang, hoặc 1 selector). Trả về trực tiếp ảnh PNG/JPEG cho AI xem và tuỳ chọn lưu ra tệp.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gpm_browser_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoĐịnh dạng ảnh: png (mặc định) hoặc jpeg
qualityNoChất lượng 10..100 khi type="jpeg"
selectorNoChụp riêng 1 phần tử nếu truyền selector
full_pageNoChụp toàn bộ chiều dài trang (mặc định false)
save_pathNoTuỳ chọn: đường dẫn tệp để lưu ảnh ra đĩa
profile_idNoID của profile GPM đang kết nối CDP (có thể bỏ trống nếu chỉ có 1 profile đang kết nối)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

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 does useful work by disclosing that the image is returned inline for AI viewing rather than only as a file, and that saving to disk is optional. It omits side effects of save_path (overwrites? directory creation?), required connection state, and failure behavior when a selector does not match, so the behavioral picture is partial for a no-annotation tool.

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, front-loaded with the capture capability and followed by the return/save behavior. Nothing is redundant or buried.

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, all-optional tool with no output schema and no annotations, the description covers the essential contract: capture modes, returned image format, and optional persistence. It could say more about connection requirements and error cases, but the schema already handles parameter-level detail.

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 every parameter is already documented in the schema, and the description only restates the three capture modes at a high level. It adds no format or interaction details beyond what the schema already supplies, making the baseline 3 appropriate.

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?

The description gives a specific verb and resource ('Chụp ảnh màn hình tab hiện tại') and enumerates the three capture scopes (viewport, full page, single selector), so an agent knows exactly what the tool produces. It stops short of distinguishing itself from the sibling gpm_browser_snapshot, which an agent could plausibly confuse with a screenshot tool.

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: the reader infers it is for taking visual captures of the page. There is no explicit statement of when to prefer this over gpm_browser_snapshot or gpm_browser_evaluate, and no preconditions (e.g., needing an active CDP connection) are called out beyond the profile_id hint.

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