Skip to main content
Glama

Explore page

explore_page

Open a URL in a headless browser, optionally via saved login or flow steps, and list meaningful elements with verified unique locators for writing Playwright tests without guessing selectors.

Instructions

Open a URL in a headless browser (optionally with a saved login and/or steps to reach a deeper page) and list its meaningful elements with locators verified to match exactly one element, most stable first. Use these locators when writing tests instead of guessing selectors.

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": {
      "url": "<url>"
    },
    "name": "explore_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesStart URL (http, https or file)
deviceNoEmulate a device for mobile web: a Playwright device name such as "iPhone 15" or "Pixel 7" (list_devices), or "desktop" (default)
sessionNoReach pages behind a login or several steps into a flow
max_elementsNo
interactive_onlyNoOnly buttons, links, inputs and other controls

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / device
      Added value: +{
      +  "description": "Emulate a device for mobile web: a Playwright device name such as \"iPhone 15\" or \"Pixel 7\" (list_devices), or \"desktop\" (default)",
      +  "type": "string"
      +}
  2. First observedv0.2.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description still discloses key behavior: execution is headless, locators are verified to match exactly one element, results are sorted by stability, and session steps run after the start URL loads but before exploring. It omits failure modes (navigation errors, timeouts) and whether page loads can have side effects, which matters for an unannotated tool.

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, zero filler: the primary action and its output guarantee come first, the intended use case second. Every clause carries information an agent needs to select and call the tool.

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?

Five parameters including a nested session object and no output schema, yet the description conveys the return shape (element list with verified locators, stability order) well enough to use results. It could say more about limits on how many elements are returned and what happens when a locator cannot be uniquely verified.

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 80%, so the schema already documents url, device, session.storage_state, session.steps, and interactive_only. The description adds meaning for the session concept (saved login and multi-step reach) but says nothing about max_elements or how interactive_only affects the element list, so it does not compensate much beyond the schema baseline.

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?

States a concrete verb chain and resource: opens a URL in a headless browser, then lists meaningful elements with locators verified to match exactly one element, ordered most stable first. The output contract (verified-unique, stability-ranked locators) makes it clearly distinct from locator checking or healing siblings.

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 these locators when writing tests instead of guessing selectors" gives explicit downstream usage, and the parenthetical explains the logged-in / multi-step reach case. It stops short of naming when to prefer check_locator or heal_locator, so the agent must infer the boundary from sibling names alone.

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