Skip to main content
Glama
chasesaurabh

mcp-page-capture

by chasesaurabh

Capture Screenshot

captureScreenshot

Capture webpage screenshots with optional pre-capture interactions like filling forms, clicking elements, and waiting for content.

Instructions

Capture webpage screenshot with optional pre-capture interactions.

PARAMS: • url (required): Page URL • steps (optional): Array of 6 step types (order auto-fixed) • headers (optional): HTTP auth headers • validate (optional): Dry-run step validation

6 STEPS (all optional, order doesn't matter): • viewport: { device: "mobile" } - Set device/screen • wait: { for: ".loaded" } or { duration: 2000 } - Wait for element or time • fill: { target: "#email", value: "a@b.com" } - Fill form field • click: { target: "#btn", waitFor: ".result" } - Click element • scroll: { to: "#footer" } or { y: 500 } - Scroll page • screenshot: { fullPage: true } - Capture (auto-added if omitted)

COMMON ERRORS & FIXES: • ELEMENT_NOT_FOUND → Add wait step before the failing step • ELEMENT_NOT_VISIBLE → Add scroll step before the failing step

EXAMPLE: { "url": "...", "steps": [{ "type": "fill", "target": "#email", "value": "a@b.com" }, { "type": "click", "target": "#submit", "waitFor": ".dashboard" }] }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe webpage URL to capture.
stepsNoSteps to execute before capture. Order: viewport → wait → fill → click → scroll → screenshot
headersNoHTTP headers for authentication (e.g., { 'Authorization': 'Bearer token' }).
Behavior4/5

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

With no annotations, the description effectively discloses behavior: step auto-ordering, auto-addition of screenshot step, error types (ELEMENT_NOT_FOUND, etc.), and HTTP auth usage. It does not cover rate limits or permissions, but the core behaviors are well-explained.

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?

The description is relatively long but well-organized with headings (PARAMS, 6 STEPS, COMMON ERRORS, EXAMPLE). It front-loads the purpose and uses bullet points. Some redundancy exists (e.g., repeating step definitions already in schema), but overall it is efficient for the tool's complexity.

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?

For a complex tool with 6 step types, nested objects, and no output schema, the description covers all necessary aspects: parameter descriptions, step details, error handling, ordering, and an example. It is complete enough for an AI agent to correctly select and invoke the tool.

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 has 100% description coverage, so baseline is 3. The description adds significant value beyond schema: details on step interactions, auto-ordering, common errors, and an example. This includes error handling tips that are not in schema 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 clearly states the tool's purpose: 'Capture webpage screenshot with optional pre-capture interactions.' It uses a specific verb ('Capture') and resource ('webpage screenshot'), and is distinct from the sibling tool 'extractDom', which is for DOM extraction.

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?

The description provides explicit guidelines for using steps, including ordering, error handling (with specific COMMON ERRORS & FIXES), and an example. It explains when to add certain steps (e.g., wait before failing step). However, it does not explicitly compare to the sibling tool 'extractDom' or state when not to use this 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/chasesaurabh/mcp-page-capture'

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