Skip to main content
Glama

take_screenshot

Capture screenshots of URLs, HTML, or Markdown content with device emulation, ad blocking, and customizable styling options for visual content creation.

Instructions

Capture a screenshot of a URL, HTML, or Markdown content. Supports device emulation, ad/chat/tracker blocking, metadata extraction, geolocation, timezone, styling (macOS/Windows frames, gradient/glass backgrounds, shadows), and more. Returns an image (PNG, JPEG, or WebP).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoURL to capture (required if no html/markdown)
htmlNoRaw HTML to render (required if no url/markdown)
markdownNoRender Markdown content as a screenshot
widthNoViewport width in pixels (default: 1280)
heightNoViewport height in pixels (default: 720)
viewportDeviceNoDevice preset for viewport emulation (e.g. "iphone_14_pro", "macbook_pro_14"). Use list_devices to see all presets.
viewportMobileNoEnable mobile meta viewport emulation
viewportHasTouchNoEnable touch event emulation
viewportLandscapeNoLandscape orientation
deviceScaleFactorNoDevice pixel ratio, use 2 for retina (default: 1)
formatNoImage format (default: png)
qualityNoJPEG/WebP quality 1-100 (default: 80)
omitBackgroundNoTransparent background (PNG/WebP only)
fullPageNoCapture the full scrollable page (default: false)
fullPageScrollNoAuto-scroll page before capture to trigger lazy-loaded images
fullPageScrollDelayNoDelay between scroll steps in ms (default: 400)
fullPageScrollByNoPixels to scroll per step (default: viewport height)
fullPageMaxHeightNoMaximum pixel height cap for full-page captures
selectorNoCSS selector to capture a specific element
clipNoCrop region { x, y, width, height } in pixels
delayNoMilliseconds to wait before capture (default: 0)
waitUntilNoWhen to consider navigation finished (default: networkidle2)
waitForSelectorNoWait for this CSS selector to appear before capturing
navigationTimeoutNoNavigation timeout in ms (default: 25000)
darkModeNoEmulate dark color scheme (default: false)
reducedMotionNoEmulate prefers-reduced-motion to disable animations
mediaTypeNoEmulate CSS media type
timeZoneNoOverride browser timezone (e.g. "America/New_York")
geolocationNoEmulate geolocation { latitude, longitude, accuracy? }
userAgentNoOverride the browser User-Agent string
cookiesNoCookies to set — array of "name=value" strings or { name, value, domain? } objects
headersNoExtra HTTP headers to send with the request
authorizationNoAuthorization header value (e.g. "Bearer <token>")
bypassCSPNoBypass Content-Security-Policy on the page
hideSelectorsNoArray of CSS selectors to hide before capture
clickNoCSS selector to click before capturing the screenshot
injectCssNoCustom CSS to inject before capturing (max 50KB)
injectJsNoCustom JavaScript to execute before capturing (max 50KB)
blockBannersNoHide cookie consent banners (default: false)
blockAdsNoBlock advertisements on the page
blockChatsNoBlock live chat widgets on the page
blockTrackersNoBlock tracking scripts on the page
blockRequestsNoURL patterns to block (array of strings)
blockResourcesNoResource types to block (e.g. ["image", "font"])
extractMetadataNoExtract page metadata (title, description, OG tags) alongside the screenshot
styleNoScreenshot styling options — add a macOS/Windows frame, gradient/glass background, shadow, and rounded corners. Use the "theme" shortcut for one-click presets, or customize individual properties.
session_idNoPersistent session ID (Starter+ only). Reuse a live browser page created with create_session — browser state (cookies, localStorage, auth) carries over from previous requests in this session.

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/Custodia-Admin/pagebolt-mcp'

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