Skip to main content
Glama

get_page_map

Get a complete semantic map of a web page's interactive elements, landmarks, and headings in one call. Each element includes ARIA role, accessible name, state, and CSS selector for quick orientation.

Instructions

Semantic page map in ONE call: every interactive element (links, buttons, inputs, custom controls) plus landmarks and headings, in document order — each with its ARIA role, accessible name, live state (disabled/checked/expanded/value), and a ready-to-use CSS selector. The fastest way to answer 'what can I do on this page?' — use it to orient before clicking instead of multiple get_page_elements calls. Interactive elements with no accessible name are flagged unnamed (an accessibility finding in itself). Output is compact: only truthy state fields, capped at max_nodes with an explicit truncated flag.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_nodesNoMax nodes to return (default: 150); 'total' reports how many exist
session_idYesSession ID
include_hiddenNoInclude invisible elements, flagged hidden (default: false)
Behavior5/5

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

No annotations provided, but the description fully discloses behavior: returns only truthy state fields, flags unnamed elements, caps output at max_nodes with a truncated flag. It describes the compact output format and the fact that it is read-only.

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?

Well-structured and front-loaded with the main purpose. The description is slightly verbose but each sentence adds necessary detail. Could be trimmed slightly but overall efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, but the description fully explains the return format: ensures agent knows what data is returned (ARIA role, accessible name, live state, CSS selector), how it's organized (document order), special flags (unnamed, hidden, truncated). Complete for agent to understand the tool's output.

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% with good descriptions, but the description adds value: explains that max_nodes acts as a cap and that 'total' reports how many exist, and clarifies include_hidden's effect (flagged hidden). These enrich the schema.

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 returns a semantic page map of interactive elements, landmarks, and headings in document order, with ARIA roles and accessible names. It distinguishes itself from get_page_elements by being a single call, and from find_element by providing a comprehensive map.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use: 'use it to orient before clicking instead of multiple get_page_elements calls.' Provides clear context for its role as a fast orientation tool.

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/segentic-lab/periscope-mcp'

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