Skip to main content
Glama

safari_react_select_set

Sets a react-select v5 dropdown value by invoking onChange through React fiber, bypassing the menu UI. Use when clicking the chevron or option fails on custom or portal-rendered selects.

Instructions

Set a value in a react-select v5 dropdown by walking React fiber to find the Select component and invoking onChange directly — bypasses the menu UI entirely. Use when safari_click on the chevron or option keeps failing (Cloudflare custom token forms after a few rows, portal-rendered selects that intercept synthetic events). Returns JSON {ok, selected} on success, or {ok:false, error, available:[…]} listing up to 30 option labels on miss. Match is by label, value, or case-insensitive label. Either ref or selector required. NOTE: For Permissions-levels combos that are disabled until a Permission is selected, set the Permissions value first — the level combo becomes enabled and its props.options populate.

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

Input Schema

NameRequiredDescriptionDefault
refNoRef ID from safari_snapshot
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 label (or value) to select — case-insensitive fallback
selectorNoCSS selector — typically input[name=...] or the .react-select__control container

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, the description carries the behavioral burden and does well: it discloses the bypass mechanism, success and failure return shapes, the up-to-30 available labels on a miss, matching behavior, and the requirement for ref or selector. It does not discuss side effects of invoking onChange directly, such as whether other React event handlers are skipped.

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?

The description is front-loaded with the core purpose and mechanism, followed by usage conditions, return format, matching rules, parameter requirement, and a special-case note. It is somewhat dense and slightly repetitive around matching, but most sentences earn their place.

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 tool with no annotations and no output schema, the definition covers the key context: what it does, when to use it, what it returns on success and failure, and a notable disabled-combo special case. Minor gaps remain, such as whether it waits for options to load, but the definition is largely complete.

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?

Schema coverage is 100%, so the baseline is 3. The description still adds a useful constraint not expressed in the schema: either ref or selector is required. It also clarifies label/value/case-insensitive matching, though much of that overlaps with the value parameter description.

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 states a specific verb and resource: set a value in a react-select v5 dropdown. It explains the mechanism (walking React fiber and invoking onChange directly) and distinguishes itself from normal clicking by saying it bypasses the menu UI entirely.

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

Usage Guidelines4/5

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

It gives clear when-to-use guidance: use when safari_click on the chevron or option keeps failing, with concrete examples such as Cloudflare token forms and portal-rendered selects. It does not explicitly state when not to use it or name a direct non-click alternative, so it falls short of full exclusion 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