Skip to main content
Glama

Page sitemap

browser_sitemap

Extract a page's link tree—URL, title, h1-h3 outline, and up to 200 links with text—while the browser is paused. Use this read-only map to audit structure and navigation.

Instructions

Return a link tree of the current page: URL, title, heading outline (h1-h3), and every link with its text (up to 200). Read-only — works while paused.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3-alpha.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose two meaningful traits: the operation is read-only and it functions while the browser is paused. It also caps results ('up to 200'), which hints at truncation. It does not say whether truncation is signalled in the output or whether iframes and lazy-loaded content are included.

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?

One sentence plus a short clause, front-loaded with the return shape and ending with the operational caveat. Every element earns its place and there is no filler.

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-parameter read tool with no output schema, the description adequately characterizes the return value (URL, title, heading outline, links with text) and the paused-mode behavior. The remaining gap is edge-case behavior at the 200-link limit, which matters for a page-scraping tool but is a minor omission given the tool's simplicity.

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 tool takes zero parameters, so there is nothing for the description to disambiguate; baseline 4 applies. The only numeric qualifier, the 200-link cap, is a fixed behavior rather than an argument.

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 (return) and resource (link tree of the current page) and enumerates the payload: URL, title, h1-h3 outline, and link text. That is far more precise than a name restatement. It does not explicitly distinguish itself from nearby extract/snapshot siblings, which keeps it at 4 rather than 5.

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

Usage Guidelines3/5

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

'Read-only — works while paused' gives a usable calling condition, telling the agent it can collect structure without advancing the page. There is no explicit contrast with alternatives such as browser_snapshot or browser_extract_text, so the agent must infer which structural tool to pick.

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