Skip to main content
Glama

safari_get_element

Inspect a Safari page element by CSS selector to get its tag, text, position, attributes, and visibility.

Instructions

Get detailed info about an element (tag, text, rect, attributes, visibility)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "selector": "<selector>"
    },
    "name": "safari_get_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptNoOmit it: Daylight has no tab receipts and refuses a call that passes one
selectorYesCSS selector

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does the important part by enumerating the returned fields, implicitly signaling a read-only inspection, but it never states that it is non-mutating, what happens when the selector matches nothing, whether it auto-waits, or what error to expect on an invisible element.

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 front-loaded sentence with the enumerable output in parentheses — nothing wasted and the key noun appears first. Slightly compressed to the point that terms like 'rect' are left unexpanded, which keeps it just short of a 5.

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

Completeness3/5

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

For a two-parameter read tool with no output schema, the field enumeration is the right compensating detail. However, it omits the failure and waiting semantics an agent needs to call it reliably against a live page, so it is adequate rather than complete.

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 both parameters are already documented in the schema ('CSS selector' and the receipt note). The description adds no meaning about selector scoping (first match vs all matches, shadow DOM, frames), leaving 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?

Names a specific verb ('Get') and resource ('an element') and enumerates the returned facets (tag, text, rect, attributes, visibility), which distinguishes it from siblings like safari_get_computed_style or safari_screenshot_element by scope of data returned. No explicit sibling naming, so not a 5.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance. An agent must infer that this is the tool for inspecting element properties rather than styling (get_computed_style) or visual capture (screenshot_element); nothing in the text routes it among those alternatives.

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