Skip to main content
Glama

safari_snapshot

Returns a page's accessibility tree with ref IDs for every interactive element, letting you click, fill, or type by ref instead of CSS selectors.

Instructions

PREFERRED way to see page state. Returns accessibility tree with ref IDs for every interactive element. Use refs with click/fill/type instead of CSS selectors. Workflow: snapshot → see refs → click({ref:'0_5'}). PREFER THIS over safari_screenshot (cheaper, structured text vs heavy image) and over safari_read_page (includes interactive refs). Use safari_screenshot only when you need to see visual layout/styling.

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": "safari_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
diffNoReturn only the lines that changed since this tab's previous snapshot (+ added, with fresh refs; - removed). Much smaller after a click or a fill
receiptNoOmit it: Daylight has no tab receipts and refuses a call that passes one
selectorNoCSS selector for subtree (default: full page)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does much of it: it discloses the output shape (structured text with ref IDs), that refs must be fed to click/fill/type, and a cost/latency tradeoff against image capture. It stops short of stating that the call is a read-only, side-effect-free operation or whether it mutates focus/page state, which is the remaining gap.

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 the decision-relevant claim ('PREFERRED'), then output, then workflow, then sibling comparisons — a good information order with a concrete example. Minor waste: 'PREFERRED' and 'PREFER THIS over' repeat the same emphasis, and the workflow line partly restates the preceding sentence.

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 3-optional-param, no-output-schema, no-annotation tool, the description covers purpose, return format, downstream usage, and alternative selection — enough to call it correctly. What is missing is bounded scope (does it snapshot the current tab only?) and the existence/benefit of the diff parameter, which is documented only in the schema.

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% and each of the three parameters (diff, receipt, selector) is documented in-schema with usage nuance, so the schema does the heavy lifting. The description adds no parameter detail of its own — notably it never mentions the diff mode, even though that is the main efficiency lever for repeated calls. Baseline 3 applies.

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?

Opens with a specific verb+resource framing ('PREFERRED way to see page state') and immediately states the return value: an accessibility tree with ref IDs for every interactive element. It explicitly separates itself from safari_screenshot and safari_read_page, so an agent can choose without inspecting schemas.

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?

Gives an explicit workflow (snapshot → see refs → click({ref:'0_5'})), a rule against CSS selectors, named alternatives with the condition that selects each ('use safari_screenshot only when you need to see visual layout/styling'), and the reason (cheaper, structured text vs heavy image). This is the strongest form of routing guidance.

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