@rishabhdugar

Website Screenshot

Capture website screenshots as PNG images. Supports full-page scrolling, custom viewports (desktop/mobile/tablet), retina quality, cookie consent auto-click, wait strategies for JS-rendered pages, and image compression. Powered by PDFAPIHub.

当前版本
v1.0.0
code-plugin社区source-linked

Website Screenshot — OpenClaw Plugin

Capture website screenshots as PNG images using the PDFAPIHub API. This OpenClaw plugin gives your AI agent the ability to screenshot any website with desktop, mobile, and tablet viewports.

What It Does

Take pixel-perfect screenshots of any website URL — desktop, mobile, or tablet — with full control over viewport, quality, page loading, and cookie consent handling.

Features

  • Desktop Screenshots — 1920x1080 viewport with networkidle wait
  • Mobile Screenshots — iPhone (375x812 @2x), Android (412x915 @2.6x), iPad (820x1180 @2x) presets
  • Full-Page Capture — Screenshot the entire scrollable page, not just the viewport
  • Retina Quality — 2x/3x device scale factor for crisp, high-DPI output
  • Cookie Consent — Auto-click cookie banners before capturing
  • Wait Strategies — Wait for load, domcontentloaded, networkidle, or commit
  • Extra Delay — Wait for lazy-loaded content, animations, or delayed rendering
  • Image Compression — Compress captured screenshots to reduce file size
  • Multiple Output Formats — Download URL, base64 string, or raw PNG file

Tools

ToolDescription
screenshot_websiteFull-featured screenshot with custom viewport, retina, full-page, cookie consent
screenshot_mobileMobile screenshot with device presets (iPhone, Android, iPad)
screenshot_desktopQuick desktop screenshot at 1920x1080
compress_screenshotCompress a captured screenshot to reduce file size

Installation

openclaw plugins install clawhub:pdf-api-screenshot

Configuration

Add your API key in ~/.openclaw/openclaw.json:

{
  "plugins": {
    "entries": {
      "pdf-api-screenshot": {
        "enabled": true,
        "env": {
          "PDFAPIHUB_API_KEY": "your-api-key-here"
        }
      }
    }
  }
}

Get your free API key at https://pdfapihub.com.

Usage Examples

Just ask your OpenClaw agent:

Use Cases

  • Website Monitoring — Capture periodic screenshots to track visual changes
  • QA Testing — Screenshot pages across desktop/mobile/tablet for cross-device testing
  • Client Reporting — Capture website screenshots for status reports and presentations
  • Social Media Previews — Generate preview images of web pages for sharing
  • Competitor Analysis — Screenshot competitor websites for design comparison
  • Bug Documentation — Capture screenshots to document visual bugs

API Documentation

Full API docs: https://pdfapihub.com/docs

License

MIT

源码与版本

源码仓库

PdfApiHub/openclaw-website-screenshot

打开仓库

源码提交

a5bf42b1d212544ec7bbee8f877b956ed1bb7c50

查看提交

安装命令

openclaw plugins install clawhub:pdf-api-screenshot

元数据

  • 包名: pdf-api-screenshot
  • 创建时间: 2026/04/17
  • 更新时间: 2026/04/17
  • 执行代码:
  • 源码标签: main

兼容性

  • 构建于 OpenClaw: 2026.3.24-beta.2
  • 插件 API 范围: >=2026.3.24-beta.2
  • 标签: latest
  • 文件数: 7