Skip to main content
Glama

safari_select_option

Select an option in a native dropdown by setting its value and dispatching a change event. Use a snapshot ref for selects inside iframes or shadow DOM.

Instructions

Select an option in a native dropdown. Sets .value and dispatches change event. Pass ref (from safari_snapshot) for a select inside an iframe or shadow DOM — a plain selector only reaches the top document. For custom dropdowns (React/LinkedIn), use safari_click on the dropdown trigger, then safari_click on the option instead.

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": {
      "value": "<value>"
    },
    "name": "safari_select_option"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoRef ID from safari_snapshot — required for selects inside iframes/shadow DOM
whyNoOptional short purpose of this step, shown to the user in the cursor's status pill (e.g. 'to save the settings'). The page can read it: never put passwords, codes, card numbers or other private data in it.
valueYesOption value or visible label to select
receiptNoOmit it: Daylight has no tab receipts and refuses a call that passes one
selectorNoCSS selector of the select (top document only)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses the mechanism (sets .value and dispatches a change event) and the DOM reach limit of a plain selector, which are the two facts most likely to cause a silent no-op. It stops short of stating what happens when the option label doesn't match, or whether the select must be visible/in-viewport before the call succeeds.

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?

Three sentences, each doing distinct work: what it does, how to target iframe/shadow DOM, and when to abandon it for a different approach. The primary action is front-loaded and no sentence is filler.

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?

No output schema exists, and the description covers the targeting modes and the main failure alternative, which is enough to call the tool correctly. Minor gap: it never indicates what the call returns or reports on success/failure, leaving the agent to discover confirmation behavior empirically.

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 coverage is 100%, so both `ref` and `selector` are already documented in the schema; the description mostly restates the ref-versus-selector split while adding the useful note that a plain selector only reaches the top document. It says nothing extra about `value` (exact match vs. label precedence) or the unusual `receipt`/`why` fields, so it does not exceed the baseline for a fully documented 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?

States a specific verb and resource ('Select an option in a native <select> dropdown') and immediately scopes it to native selects, which separates it from the sibling react-select tooling and from safari_click. An agent can identify the tool's domain without opening the schema.

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 explicit routing rules: use `ref` for selects in iframes or shadow DOM, use `selector` only for the top document, and for custom React/LinkedIn dropdowns use safari_click on the trigger then on the option instead. Both the when and the when-not are stated with named 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