Skip to main content
Glama

capture_component

Read-only

Serialize any web page component into a portable rebuild pack, capturing DOM structure, computed-style tokens, and animations for design-to-code tooling.

Instructions

Serialize a page component (structure, computed-style tokens, animations) into a portable pack for rebuild tooling. Runs on any URL — does not fetch awwwards.com.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesAbsolute page URL whose component to serialize
maxNodesNoMax DOM nodes to serialize (default 400, clamp 50-2000)
selectorNoCSS selector of the component root (default 'header')
viewportNodesktop = 1440x900 (default); mobile = 390x844 iPhone-class with deviceScaleFactor 3, isMobile + hasTouchdesktop

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.9.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false and idempotentHint=false, so the safety profile and the fact that results may vary between calls are covered. The description usefully adds what gets captured and the fact that it operates against arbitrary network URLs, but says nothing about auth, rate limits, timeouts, or where the resulting pack goes.

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?

Two tight sentences with the core action front-loaded and the payload enumerated immediately after the verb. The trailing scope disclaimer is compact but its phrasing is slightly indirect, keeping this just short of a 5.

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

Completeness3/5

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

For a four-parameter, network-touching capture tool with no output schema, the definition covers the action and the capsule contents that come back. It leaves open what the 'portable pack' looks like, how large a capture can be, and how failures on unreachable or restricted pages are surfaced.

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% — url, maxNodes, selector and viewport all carry descriptions, defaults, and ranges. The description adds only high-level payload content ('structure, computed-style tokens, animations'), which does not map to specific parameter semantics, so the baseline of 3 applies.

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?

Names a specific verb (serialize) and resource (a page component) plus the payload contents (structure, computed-style tokens, animations), which is far more than a restatement of the name. It does not, however, distinguish itself from plausible siblings like capture_live_site or analyze_page_structure, so the agent must still infer which capture tool fits.

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

Usage Guidelines2/5

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

There is no when-to-use statement, no prerequisites, and no routing to an alternative. 'Runs on any URL — does not fetch awwwards.com' reads as a scope disclaimer rather than guidance, and is ambiguous about whether awwwards URLs are supported or merely irrelevant.

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