Skip to main content
Glama

page_map

Analyze page structure with headings, landmarks, forms, links, and interactive elements. Scope to a specific modal or dialog to inspect its content without background noise.

Instructions

Get a comprehensive structural map of the current page including headings (h1–h6 with section sizes), landmark regions, forms with field details, links (text + href, capped at 50), and interactive elements (buttons, inputs, selects with state and @eN refs). Use to discover page structure before interacting, or with scope to inspect a specific modal/dialog without background noise. Each interactive element returns a stable @eN reference for use in click, fill_form, hover, press_key, and select_option.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoCSS selector to scope all queries within (e.g. "[role='dialog']" for modal content only, ".sidebar" for a specific region). If omitted, queries the full page.
Behavior4/5

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

No annotations provided, but the description details what the tool returns (headings with section sizes, landmarks, forms, links capped at 50, interactive elements with state and @eN refs). It also mentions the stable @eN reference for other tools, giving good behavioral insight.

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?

The description is concise yet complete, with front-loaded content listing what it returns, followed by usage guidance, and additional details. Every sentence adds value with no wasted words.

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?

Given the complexity and lack of output schema, the description covers all major aspects: elements included, link cap, @eN references. It could be more explicit about the output structure (e.g., hierarchical tree), but overall it's adequate.

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?

The input schema already describes the 'scope' parameter (100% coverage). The description adds value by explaining its purpose for scoping to a specific modal/dialog, which goes beyond the schema 'CSS selector' definition.

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 it gets a 'comprehensive structural map of the current page' listing specific elements (headings, landmarks, forms, links, interactive elements). It distinguishes from siblings like navigation, click, or fill_form by focusing on page structure discovery.

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?

Explicitly advises using it to 'discover page structure before interacting, or with scope to inspect a specific modal/dialog without background noise.' While it doesn't list exclusions, the context is clear and directly addresses when to use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mingye-Lu/AgenticCrawler'

If you have feedback or need assistance with the MCP directory API, please join our Discord server