Skip to main content
Glama

browser_extract_list

Extracts all rows from long or virtualized lists by scrolling the container until no new rows appear; returns deduplicated row text and whether the list end was reached.

Instructions

Read the rows of a long or virtualised list by scrolling its container until no new rows appear. Use this instead of browser_get_page_content whenever a page shows a repeating list longer than the viewport - mail lists (Outlook, Gmail), invoice/billing tables, search results, transaction histories. Those UIs keep only ~7 rows in the DOM at a time, so a single page read returns a sliver and looks complete. Pass the CSS selector of one repeating row (e.g. '[role="option"]', 'tr', '[role="listitem"]'); the scrollable ancestor is found automatically. When the tab is the active one in its window, it scrolls with real wheel events, also at the bottom, so a feed that loads more rows on wheel (Threads, X) loads them. A hidden page (a background tab) gets no wheel or scroll events, IntersectionObserver callbacks or animation frames, so a list that loads or renders rows while you scroll stops at what is already there; then reached_end is false and note says why. Returns deduplicated row text, scroll_method (wheel or script) and reached_end, which is true only when the list stood at its bottom in a visible page with no new rows, growth or movement for stable_rounds rounds in a row. If the selector matches no rows with text, the answer is error "no-rows".

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": {
      "selector": "<selector>"
    },
    "name": "browser_extract_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
wait_msNoWait after each scroll so new rows can render (default 350)
max_rowsNoStop after this many unique rows (default 500, max 5000)
selectorYesCSS selector matching ONE repeating row (e.g. '[role="option"]' in Outlook, 'tr' in a table)
containerNoOptional CSS selector for the scrollable container. Omit to auto-detect the row's nearest scrollable ancestor.
partitionNoRun this call in a partition from browser_partition (an id like "p1"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.
scroll_stepNoPixels per scroll. Omit for 85% of the container height.
stable_roundsNoRounds in a row with no new rows, growth or movement before stopping, and at the bottom before reached_end (default 3)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.33.0
    • addedInput schema / properties / partition
      Added value: +{
      +  "description": "Run this call in a partition from browser_partition (an id like \"p1\"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv1.30.2
    • changedInput schema / properties / stable_rounds / description
      Previous value: -"Consecutive scrolls with no new rows before stopping (default 3)"New value: +"Rounds in a row with no new rows, growth or movement before stopping, and at the bottom before reached_end (default 3)"
  3. Addedv1.28.0

TDQS

A4.8/5.0
Behavior5/5

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

No annotations exist, yet the description carries the full burden: wheel vs script scroll_method, the background-tab limitation on wheel events/IntersectionObserver/animation frames, the exact meaning of reached_end (bottom + visible + no growth for stable_rounds), and the 'no-rows' error. This is behavior well beyond what any structured field supplies.

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?

Front-loaded with the action, then the alternative, then the behavioral caveats. It is dense and long, but nearly every clause carries information an agent needs (virtualised DOM, hidden-tab degradation, reached_end definition); only minor tightening is possible.

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

Completeness5/5

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

For a 7-parameter extraction tool with no output schema, the description still documents return contents (deduplicated row text, scroll_method, reached_end), the failure mode, and partition-relevant caveats. An agent has enough to call it correctly and interpret the result.

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 coverage is 100%, so baseline is 3, but the description adds useful semantics: selector must match ONE repeating row (with real examples), and the scrollable ancestor/container is found automatically. The remaining knobs (wait_ms, max_rows, scroll_step, partition, stable_rounds) are left to the schema, which is acceptable given full coverage.

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?

Starts with a specific verb and resource: 'Read the rows of a long or virtualised list by scrolling its container'. It also names the sibling it replaces (browser_get_page_content) and the exact conditions that select it, so an agent can differentiate without opening either schema.

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

Usage Guidelines5/5

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

Explicitly says to use this INSTEAD of browser_get_page_content when a page shows a repeating list longer than the viewport, and gives concrete examples (Gmail, invoice tables, transaction histories). It further describes when the tool under-delivers (hidden/background tab gives reached_end=false and a note), which is real usage guidance.

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