Skip to main content
Glama

page.select_option

Selects one or more options in a element by label, value, text, CSS selector, or XPath, enabling reliable form interaction during browser automation.

Instructions

Choose one or more options in a .

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "page.select_option"
  }
}

Input Schema

NameRequiredDescriptionDefault
nthNoZero-based index when the locator matches several elements.
refNoSnapshot ref (eNN) from page.snapshot.
textNoVisible text of the element.
xpathNoXPath expression.
labelsNo
valuesNo
frame_idNoFrame to search within; see page.list_frames.
selectorNoCSS selector; pierces shadow DOM.
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
backend_node_idNoCDP backendNodeId, e.g. from inspector.pick.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, so the agent knows this mutates page state, but the description adds nothing beyond that: no mention of change events firing, form submission implications, waiting/actionability behavior, or failure modes for non-select elements. For a mutation tool the description should carry more of this burden than a single sentence.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short, front-loaded sentence with no filler, which is good structurally. However, at this length for an 11-parameter mutation tool it reads as under-specification rather than disciplined concision.

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?

With 11 parameters, no output schema, and only two loose annotations, the description is too thin to fully prepare an agent to call it correctly. Key operational facts — multi-select semantics, what happens with labels/values mismatches, and target/browser scoping — are left entirely to the schema.

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 82%, so the schema already documents most of the 11 parameters. The description's 'one or more options' implicitly signals the array-shaped labels/values parameters, but it does not explain the crucial choice between labels vs values, nor how the element is targeted (ref/selector/xpath/nth) or the browser_id/target_id/frame_id scoping.

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 ('Choose') and resource ('one or more options in a <select>'), which is enough for an agent to know this targets a dropdown/select element rather than a generic click. It does not distinguish itself from siblings like page.click or page.type, which would push it toward a 5.

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

Usage Guidelines2/5

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

There is no guidance on when to use this instead of page.click on an option, page.type into a combobox, or page.press for keyboard selection. No preconditions are given (e.g. the element must be a <select>, whether the page must be settled).

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