Skip to main content
Glama

下拉选择

browser_select_option

Selects an option from a dropdown by matching its value or visible label using the element ref, enabling automated form filling and filter changes in Chromium.

Instructions

Select an option in a dropdown by ref, matching by value or visible label.

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": {
      "ref": "<ref>"
    },
    "name": "browser_select_option"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesElement ref of the combobox
labelNoOption visible label to select
tabIdNoTab id (default: active tab)
valueNoOption value to select
snapshotNoReturn an incremental snapshot after the action (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly=false, idempotent=false, destructive=false and openWorld=true, so the safety profile is covered. The description adds the matching semantics but omits what happens when no option matches (error vs. silent no-op), whether the page is scrolled to the element, and whether re-selecting the same option is counted as a change (relevant given idempotentHint=false).

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?

A single front-loaded sentence with the action, target, and matching mechanism in that order. No filler or redundancy.

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?

With rich annotations and full schema coverage on a simple five-parameter action tool, the description is nearly sufficient. The only meaningful gap is failure behavior for a non-matching option, which matters because the tool is a non-idempotent write.

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 all five parameters including ref, label, value, tabId and snapshot are documented in structured data. The description only echoes the label-vs-value distinction already present in the schema, adding no tie-breaking or precedence rule when both are supplied.

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?

States a specific verb and resource ('Select an option in a <select> dropdown') and names the selection key mechanism ('matching by value or visible label'). This clearly separates it from generic interaction siblings like browser_click or browser_fill_form, though it doesn't name an alternative explicitly.

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?

Usage is only implied by the resource type: an agent can infer this is the right tool for native <select> elements. It never says when to prefer this over browser_click or browser_fill_form, nor when to use 'label' versus 'value' when both are available.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.