Skip to main content
Glama

firefox_read

Read-only

Reads the current Firefox page as paginated visible text or a numbered list of links, buttons, and fields, enabling clicks and typing by element reference.

Instructions

Read the page. mode=text: visible text (paged by offset). mode=interactive: numbered list of links, buttons and fields; use the numbers as ref in firefox_click/firefox_type.

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": "firefox_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoDefault: text
tabIdNoTab id from firefox_tabs. Default: the tab last used, else the visible one.
offsetNoText offset for long pages

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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 real value the annotations don't: text mode is paged via offset, and interactive mode returns a numbered list of links, buttons and fields whose numbers serve as refs downstream. It does not say what happens on truncated pages or whether interactive mode is also paged, so the behavioral picture is useful but incomplete.

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?

Three compact clauses, front-loaded with the core action, then each mode with its output shape and downstream use. No filler, no restatement of the title or schema defaults.

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 tool with no output schema, the description covers both return shapes and the paging mechanism, which is the critical information. Minor gaps remain around pagination termination and tabId fallback behavior, but those are largely documented in the schema.

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. The description earns an extra point by giving the enum values actual meaning — it explains what each mode returns rather than just listing 'text'/'interactive', which is information the schema enum alone does not convey.

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?

States a specific verb and resource ("Read the page") and immediately breaks it into two named modes with distinct outputs (visible text vs. numbered interactive elements). This distinguishes it from firefox_find/firefox_search-style tools implicitly by describing what it returns, though no sibling is named directly.

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 clear operational routing: use mode=interactive when you need actionable elements, and then feed the returned numbers as `ref` into firefox_click/firefox_type. That is a concrete use-then-act workflow. It stops short of saying when NOT to use it (e.g., for search or scraping) or how to decide between mode=text and firefox_find.

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