Skip to main content
Glama

Crawl a site's design system

crawl_site

Crawls a website's pages to extract shared design tokens (colors, fonts, CSS variables) and page structures, generating a site-wide design guide with per-page breakdowns.

Instructions

Crawl same-origin pages breadth-first from a start URL and merge each page's design analysis into a site-wide design system: colors, fonts, and CSS variables shared across pages versus unique to one page, plus a page inventory with section outlines. With outputDir, writes per-page design/layout JSON and screenshots plus a SITE.md guide naming the pages worth replicating individually.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesAbsolute http:// or https:// start URL; same-origin links are crawled from here.
maxDepthNoMaximum link depth from the start URL.
maxPagesNoMaximum pages to load, start page and failed loads included.
outputDirNoAbsolute directory: writes crawl/pages/<slug>/design.json + layout.json (+ viewport.jpg), crawl/site.json, and crawl/SITE.md.
timeoutMsNoNavigation timeout in milliseconds.
userAgentNoOptional browser user-agent override.
waitUntilNoPage lifecycle event to await before extraction.domcontentloaded
autoScrollNoScroll through the page before extraction to trigger lazy-rendered content.
maxScrollsNoMaximum viewport-sized scroll steps when autoScroll is enabled.
stripQueryNoTreat URLs differing only by query string as the same page.
viewportWidthNoBrowser viewport width in CSS pixels.
viewportHeightNoBrowser viewport height in CSS pixels.
excludePatternsNoGlob patterns for paths to skip. Exclude wins over include.
includePatternsNoGlob patterns ('*' wildcard) a path must match to be crawled. Empty means all paths.
maxLinksPerPageNoLinks harvested per page.
includeScreenshotsNoWith outputDir, save a viewport screenshot per page.
maxElementsPerPageNoDOM elements analyzed per page (lighter than analyze_site).
allowPrivateNetworkNoAllow localhost and private-network URLs. Enable only for trusted sites.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already signal readOnlyHint=false, openWorldHint=true, idempotentHint=false, and destructiveHint=false, and no contradiction exists. The description adds useful behavioral context beyond annotations: breadth-first traversal, same-origin boundary, optional file output side effects, and per-page JSON screenshots. It does not, however, mention external site-loading costs, overwrite behavior, or nondeterminism in more detail.

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 dense, information-heavy sentences with no filler. The primary crawl-and-merge purpose is front-loaded, followed by a precise description of artifacts written when outputDir is provided.

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 tool's complexity and the fully covered schema, the description conveys the essential behavior, output artifacts, and site-wide scope adequately. The main gap is the absence of explicit routing guidance against siblings and lack of clarity about behavior when outputDir is omitted.

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 description coverage is 100%, so the schema already documents all 18 parameters. The tool description adds no substantive parameter semantics beyond 'start URL' and 'outputDir', and those are already well covered in the schema property descriptions.

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 names a specific action and resource: crawl same-origin pages breadth-first from a start URL and merge per-page design analysis into a site-wide design system. It lists concrete outputs (colors, fonts, CSS variables, page inventory, section outlines, SITE.md), making the tool's purpose highly distinguishable from siblings like analyze_site or analyze_html.

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?

The description implies when to use it: when a multi-page, site-wide design-system analysis is needed, with same-origin crawling and optional on-disk outputs. However, it never explicitly states when to prefer a sibling tool such as analyze_site for a single page or deep analysis, nor does it warn against using it in one-page scenarios.

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/blackridder22/PicassoWeb'

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