Skip to main content
Glama
Pagewright (browser-mcp)

Pagewright (browser-mcp)

by zamansheikh

browser_select_option

Choose one or more options in a native select element by value or visible label, using an element ref or CSS/text/XPath selector to target the dropdown.

Instructions

Choose option(s) in a native 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": {
      "values": "<values>"
    },
    "name": "browser_select_option"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoElement ref from browser_snapshot, e.g. "e12". Preferred over selector.
tabIdNoTab to act on. Defaults to the tab last opened/selected by an agent, else the active tab.
valuesYes
selectorNoCSS selector, "text=Sign in" (visible text), or "xpath=//button". Searches open shadow roots too.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it says nothing about whether change/input events are dispatched (critical for frameworks like React), what happens when a value doesn't match an option, whether it waits for the element, or whether multiple selections require multi-select. Only the plural 'option(s)' hints at multi-select support.

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 no filler. It is efficient, though the brevity is achieved partly by omitting behavior rather than by tight editing.

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

Completeness2/5

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

A browser-mutating tool with four parameters, no annotations and no output schema needs more than one sentence. Missing are event-dispatch semantics, failure behavior for unmatched values, and any statement about the resulting page/return state — all things an agent must know to invoke it correctly.

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 75%, and the one undocumented parameter is the required 'values' array — which the description partially rescues by stating values may be given as value or visible label. It adds nothing about ordering, partial matches, or how ref/selector/tabId interact, so it sits at the baseline for a mostly-documented schema.

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?

Specific verb ('Choose') plus a narrowly scoped resource ('option(s) in a native <select>') and the matching mechanism ('by value or visible label'). The 'native <select>' qualifier implicitly separates it from browser_click/browser_type used on custom dropdowns, though no sibling is named.

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 'native <select>' scoping implies custom/JS-driven dropdowns are out of scope and should be handled by clicking instead, which is useful implicit routing. There is no explicit when-to-use statement, no prerequisite, and no named alternative.

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