Skip to main content
Glama

browser.list_targets

Read-only

Lists attached browser targets—pages, out-of-process iframes, dedicated/shared/service workers, and extension contexts—so agents can discover usable target IDs and filter by type or browser.

Instructions

Every attached target: pages, out-of-process iframes, dedicated/shared/service workers, extension contexts. Page tools accept any of these ids.

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": "browser.list_targets"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoFilter, e.g. "page", "service_worker", "worker".
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds the shape of the result (the target categories) and the downstream contract that page tools accept these ids, but says nothing about targets appearing/disappearing between calls, ordering, or whether a browser must already be running.

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?

Two short sentences, front-loaded with the resource inventory and closing with the actionable downstream fact. No filler or restatement of the name.

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 zero-required-parameter read-only listing with full schema coverage and no output schema, the description gives enough of the return shape and the id-consumption contract to call it correctly. A note on target volatility or browser prerequisites would make it complete.

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%, with both the type filter and browser_id handle documented in the schema itself. The description adds no meaning beyond that; notably the auto-launch fallback for an omitted browser_id lives only in the 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?

The description names the resource precisely and enumerates what counts as a target (pages, OOPIFs, dedicated/shared/service workers, extension contexts), which is far more specific than the name alone. It does not distinguish itself from the sibling browser.list, leaving some ambiguity about which list to call.

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?

There is no explicit when-to-use or when-not guidance, but the closing sentence 'Page tools accept any of these ids' implies the intended workflow: fetch ids here, then pass them to page tools. That is inference rather than stated guidance, and no alternative is named.

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