Skip to main content
Glama

List browser tabs

browser_list_tabs
Read-onlyIdempotent

Lists Chrome tabs in the agent's tab group, marks the active tab, and returns tab_id values other browser tools require; use all=true to include every open tab.

Instructions

List the tabs in the agent's own Chrome tab group, marking the active one, with the tab_id each other browser tool needs. Pass all=true to see every tab open in the browser, including the user's, so you can pick one to drive with browser_use_tab. It also lists the agent tabs closed in the last hour, with who closed each one and why. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
allNoList every tab in the browser, not just the agent's (default false)
session_idNoStable task or thread ID. Pass the same value on every browser call for this task. Different IDs isolate tabs and cleanup within one MCP process. Omit for the default process session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.3
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "Stable task or thread ID. Pass the same value on every browser call for this task. Different IDs isolate tabs and cleanup within one MCP process. Omit for the default process session.",
      +  "maxLength": 128,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds behavior beyond that: the active tab is marked, the closed-tab history window is one hour, and each closed entry carries who closed it and why — useful disclosure of return shape and side-history that annotations cannot express.

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?

Three front-loaded sentences with almost no waste: scope first, then the all=true escape hatch and its follow-up action, then the closed-tab history. The trailing 'Read-only' sentence duplicates readOnlyHint from the annotations, which is the only genuinely redundant element.

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?

No output schema exists, and the description compensates by describing what comes back: each tab's tab_id, which tab is active, and the recently closed agent tabs with closer and reason. For a zero-required-parameter read tool with full annotation coverage this is largely complete, with only minor gaps such as result ordering.

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 description coverage is 100%, so the baseline is 3. The description goes slightly beyond the schema by explaining the purpose of all=true — surfacing the user's tabs so one can be picked and driven with browser_use_tab — whereas the schema only says 'list every tab in the browser'. session_id is left entirely to the schema, which documents it adequately.

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?

States a specific verb and resource (list tabs) plus the exact scope: the agent's own Chrome tab group, with the active one marked. It also distinguishes the default behavior from the all=true mode and names browser_use_tab as the consumer of the returned tab_id, so an agent can tell it apart from siblings without opening a schema.

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?

Gives a clear conditional: use the default to see the agent's own tabs, pass all=true when you need to see the user's tabs and pick one to drive with browser_use_tab. That is explicit when-to-use and a named alternative, but it offers no explicit when-not or guidance relative to tab-selection/opening siblings such as browser_select_tab or browser_open_tab.

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