Skip to main content
Glama

Snapshot Page Content & Interactive Elements

gpm_browser_snapshot

Reads the visible text of the current page and lists interactive elements (links, buttons, inputs, selects) with suggested selectors so you can click or fill forms accurately.

Instructions

Đọc nhanh nội dung chữ của trang hiện tại và liệt kê các phần tử tương tác (link, button, input, select) kèm selector gợi ý để click/điền form chính xác.

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_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
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)
max_elementsNoSố phần tử tương tác tối đa (mặc định 80)
max_text_charsNoGiới hạn số ký tự văn bản trả về (mặc định 6000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral load. It conveys the observation-only nature implicitly and notes the selector suggestions, but says nothing about side effects, whether the page must be loaded/waited on, whether output is truncated by default, or how stable/unique the selectors are.

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?

A single dense sentence with the observation goal front-loaded and the purpose (accurate click/form fill) trailing as motivation. No filler, though one clause on return shape would have earned full marks.

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 output schema, the description does sketch the return: page text plus an element list with suggested selectors. That is enough for an agent to decide the tool is a discovery step before click/type, with only the exact payload shape left unstated.

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 profile_id, max_elements and max_text_chars are already documented with defaults and ranges. The description adds no meaning beyond the schema, which is the expected baseline when the schema does the work.

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 pairs concrete verbs with the resource: read the current page's text content and list interactive elements (link, button, input, select) with suggested selectors. That distinguishes it from mutation siblings like click/type, though it never names screenshot or evaluate, which also observe the page.

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?

"Đọc nhanh" implies a lightweight reconnaissance step and the phrase "để click/điền form chính xác" implies it precedes click/type, but there is no explicit when-to-use vs when-not guidance and no named alternative for cases where a screenshot or JS evaluation would be better.

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