Skip to main content
Glama

browser_snapshot

Capture a structured snapshot of the current page, including URL, title, visible text, form fields, and actionable buttons, for AI-driven element targeting.

Instructions

Capture a structured snapshot of the current page: URL, title, visible text, form fields, and actionable buttons for AI-driven element targeting.

中文详情:

  • 用途:获取当前页面的结构化快照,包含 URL、标题、可见文本、表单元素和按钮清单

  • 何时使用:交互前需要了解页面当前结构时;定位元素前获取可点击清单时;表单填写前查看字段时;流程断点处记录页面状态时

  • 输出:{ ok: boolean, url: string, title: string, visibleText: string, forms: array, buttons: array, inputs: array, timestamp: string } — forms/buttons/inputs 各项含 selector、text、attributes 等定位信息

  • 参数:无

  • 错误:浏览器未启动抛出 'Browser not launched';页面未加载完成可能返回不完整快照

  • 示例:{}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations are provided, so the description carries full burden. It details the output structure (ok, url, title, etc.), error cases ('Browser not launched', incomplete snapshot), and implies read-only behavior. No contradictions.

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?

Description is in two parts (English then Chinese). The Chinese is redundant in purpose but adds usage guidelines and structure. Front-loaded well. Slightly verbose due to duplication, but still clear and organized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given zero parameters and no output schema, the description covers output format, error scenarios, and usage context completely. It provides an example and lists return fields. No missing critical information for a snapshot tool.

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?

The input schema has no parameters, so baseline is 4. The description explicitly states '参数:无' (parameters: none). No additional semantic value needed beyond 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 clearly states the tool captures a structured snapshot of the current page including URL, title, visible text, form fields, and buttons. It distinguishes from sibling tools like browser_screenshot (visual) and browser_dom (raw DOM) by focusing on structured data for AI targeting.

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

Usage Guidelines5/5

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

The Chinese section explicitly lists when to use: before interaction to understand page structure, to get clickable list before locating elements, to view fields before form filling, and to record page state at breakpoints. This provides clear context and implies when not to use (e.g., not for visual checks).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/validpilot/ai-verify-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server