Skip to main content
Glama

page.list_frames

Read-only

Lists the page's frame tree with origins and execution-context IDs, so an agent can run JavaScript in a specific iframe.

Instructions

Frame tree with origins and execution-context ids, so JS can be run inside a specific iframe.

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.list_frames"
  }
}

Input Schema

NameRequiredDescriptionDefault
target_idNoTarget handle (tgt_*). Omit for the active page.
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 the safety profile is covered. The description usefully reveals what the tool returns (origins plus execution-context ids), but omits behavioral traits that matter for frame enumeration, such as whether cross-origin frames are included or how nested frame trees are represented.

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?

A single compact sentence that front-loads the resource and then the purpose. There is no filler, and the motivating context is packed into the same sentence rather than padding a second one.

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 enumeration tool with full schema coverage and no output schema, the description adequately conveys both what is returned and why it matters. The remaining gap is return-shape detail for a nested frame tree, which an agent might want when frames nest or cross origins.

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 100%, and the schema already explains that target_id and browser_id are optional handles with auto-selection fallbacks. The description adds nothing about parameter meaning beyond that baseline, though it does signal the output of a call is intended to feed JS execution targeting.

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 ('Frame tree') and the two key payload fields ('origins and execution-context ids'), which is more specific than a bare restatement of the name. It doesn't explicitly use a verb like 'list' or differentiate from page.list_tabs, but the frame-vs-tab distinction is implicit and clear enough to route correctly.

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?

The clause 'so JS can be run inside a specific iframe' gives a concrete downstream use case, which implies when to call it. However, there is no explicit when-not guidance, no mention of alternatives such as page.list_tabs for top-level documents, and no hint about which target_id/browser_id combination to prefer.

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