Skip to main content
Glama

页面状态

browser_page_state
Read-onlyIdempotent

Read a compact page-state summary in one call to check URL, title, readyState, scroll position, dialogs, Cloudflare hints, and tab identity before long tasks or when navigation or scrolling fails.

Instructions

Read a compact page-state summary in one call: URL, title, readyState, visibilityState/hasFocus, scroll position/height/viewport (and whether the page is scrollable), visible dialogs plus intercepted alert/confirm/prompt records, Cloudflare challenge and rate-limit hints, and the browser/tab identity. Read-only. Use it before long tasks or whenever navigation or scrolling seems to have no effect.

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

Input Schema

NameRequiredDescriptionDefault
tabIdNoTab id (default: active tab)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered; the description adds that it is a single-call snapshot (implying no multi-step probing) and that it surfaces intercepted alert/confirm/prompt records and Cloudflare/rate-limit hints, which is non-obvious behavior. 'Read-only' merely restates the annotation and nothing is said about truncation of the 'compact' summary or token cost.

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 core action ('Read a compact page-state summary in one call') followed by the returned-field inventory and then the usage trigger. The field list is long but each item is a distinct piece of state an agent would otherwise have to probe separately, so it earns its place; slight density cost only.

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?

With no output schema, the description takes on the burden of describing return contents, and it does so thoroughly enough for an agent to know what it will get back. Remaining gaps are modest: no mention of response size limits, what happens when no tab is active, or how intercepted dialog records are ordered/cleared.

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?

Only one optional parameter (tabId) and schema coverage is 100%, so the schema fully documents it. The description never mentions tabId or the default-to-active-tab behavior in prose, so it adds nothing beyond the schema; baseline 3 applies.

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?

Specific verb ('Read') plus a precisely enumerated resource: URL, title, readyState, visibility/focus, scroll geometry, dialogs and intercepted alert/confirm/prompt records, Cloudflare hints, browser/tab identity. It is clearly a consolidated state snapshot rather than a single-purpose probe. It does not name siblings it overlaps with (e.g. browser_dialogs, browser_cloudflare), so differentiation is left to inference.

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?

'Use it before long tasks or whenever navigation or scrolling seems to have no effect' gives concrete triggers for reaching for this tool, including a diagnostic use case. It does not state when to prefer a narrower sibling or what this tool cannot tell you, so no explicit exclusions or alternatives are offered.

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