Skip to main content
Glama

MCP Server for Crawl4AI

by omgwtfwow

capture_screenshot

Capture webpage screenshots as base64-encoded PNG images. Use this tool to visually document web content, wait for page loading, and optionally save screenshots to local directories for web analysis and documentation.

Instructions

[STATELESS] Capture webpage screenshot. Returns base64-encoded PNG data. Creates new browser each time. Optionally saves screenshot to local directory. IMPORTANT: Chained calls (execute_js then capture_screenshot) will NOT work - the screenshot won't see JS changes! For JS changes + screenshot use create_session + crawl(session_id, js_code, screenshot:true) in ONE call.

Input Schema

NameRequiredDescriptionDefault
save_to_directoryNoDirectory path to save screenshot (e.g., ~/Desktop, /tmp). Do NOT include filename - it will be auto-generated. Large screenshots (>800KB) won't be returned inline when saved.
screenshot_wait_forNoSeconds to wait before taking screenshot (allows page loading/animations)
urlYesThe URL to capture

Input Schema (JSON Schema)

{ "properties": { "save_to_directory": { "description": "Directory path to save screenshot (e.g., ~/Desktop, /tmp). Do NOT include filename - it will be auto-generated. Large screenshots (>800KB) won't be returned inline when saved.", "type": "string" }, "screenshot_wait_for": { "default": 2, "description": "Seconds to wait before taking screenshot (allows page loading/animations)", "type": "number" }, "url": { "description": "The URL to capture", "type": "string" } }, "required": [ "url" ], "type": "object" }

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/omgwtfwow/mcp-crawl4ai-ts'

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