Skip to main content
Glama

safari_screenshot_element

Capture a screenshot of a specific Safari webpage element using its CSS selector and return the image as base64 for inspection or reporting.

Instructions

Take a screenshot of a specific element (by CSS selector). Returns a base64 image.

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

Input Schema

NameRequiredDescriptionDefault
receiptNoOmit it: Daylight has no tab receipts and refuses a call that passes one
selectorYesCSS selector of the element to capture

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the return payload (a base64 image), which is valuable given there is no output schema, but it says nothing about failure modes, whether the element is scrolled into view first, how clipping or off-screen elements are handled, or whether the call waits for rendering.

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, zero filler, with the capture target stated first and the return value second. Every clause earns its place.

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 simple two-parameter tool this covers the essentials: what is captured and what comes back. It is thin on edge-case behavior (missing selector match, hidden or zero-size elements, viewport clipping) that an agent would want before invoking it on an arbitrary page.

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%, including the unusual "receipt" parameter, which the schema explicitly tells callers to omit. The description only restates that the selector is a CSS selector of the target element, adding no new meaning beyond the schema, so the baseline of 3 applies.

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?

"Take a screenshot of a specific element (by CSS selector)" gives a concrete verb plus a scoped resource, and the word "element" implicitly separates it from the full-page sibling safari_screenshot. It never names that alternative, so the differentiation is inference-based rather than explicit.

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?

The phrase "specific element" implies the use case (you want one component rather than the whole viewport), but there is no explicit when-to-use statement, no mention of when to prefer safari_screenshot or safari_get_element, and no preconditions such as the element needing to be visible or in view.

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