Skip to main content
Glama

frames_list

List all frames in a tab, including top document and iframes, with their IDs and URLs. Use when a selector fails to match—the element may be in a frame—then target that frame by ID.

Instructions

List the tab's frames (the top document plus every iframe the extension can reach), with each frame's id and URL. Use it when a selector that should match does not: the element is probably in one of these frames, and you can then pass frameId (or allFrames:true) to act inside it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tabIdNoTab id (default: active tab)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.5
    • changedInput schema / properties / tabId / description
      Previous value: -"Target tab id (defaults to the active tab)"New value: +"Tab id (default: active tab)"
  2. Addedv0.7.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden. It discloses that only frames the extension can reach are included, which is a behavioral boundary. It also states what output to expect (id and URL), but doesn't explicitly state it's read-only, though that's inferable.

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 sentences: the first states the core function and output, the second gives a practical use case. No fluff, information is front-loaded.

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 tool with one optional parameter and no output schema, the description covers purpose, output format, and a use case. It lacks explicit return type details (e.g., array of objects) but provides enough for an agent to understand the result.

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?

The single parameter tabId is fully described in the schema with default behavior, so the description adds no new information about parameters. It does reference frameId and allFrames:true, but those are for other tools, not this one.

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?

The description clearly states the tool lists the tab's frames, including the top document and reachable iframes, with each frame's id and URL. It uses a specific verb 'List' and resource 'frames', distinguishing it from sibling tools which are actions like click or type.

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?

It explicitly tells when to use it: when a selector doesn't match, the element might be in an iframe, and then to use the result to pass frameId or allFrames:true. This gives a concrete scenario and guidance on how to proceed.

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