Captures full-page screenshots of scrollable, lazy-loading, or extremely long web pages as a single PNG using Chrome DevTools Protocol (CDP). Automatically expands scroll containers, triggers lazy loading, and stitches high-resolution chunks together.
Ships in 10-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
需要把整张网页(包括需要滚动、懒加载、SPA 动态渲染、甚至上万像素超长的内容)抓成单张 PNG 时使用。脚本基于 Chrome DevTools Protocol(CDP),除 Node.js 22+ 与开启远程调试的 Chrome 外零外部依赖,能自动展开滚动容器、触发懒加载、测量真实内容高度并完成截图与拼接。
不该用边界:
chrome://inspect/#remote-debugging 并勾选「Allow remote debugging for this browser instance」。--list 列出标签,再用 targetId 截图。--width(文章 1200,仪表盘/宽表 1440-1920)、--dpr、--wait。# 1) 环境自检(务必先做)
node "${SKILL_DIR}/scripts/full-page-screenshot.mjs" --check
# 2A) 列出已打开标签页
node "${SKILL_DIR}/scripts/full-page-screenshot.mjs" --list
# 2B) 对已打开标签截图(登录态首选)
node "${SKILL_DIR}/scripts/full-page-screenshot.mjs" <targetId> /tmp/screenshot.png --width 1200 --dpr 1
# 3) 对 URL 截图(后台开标签,不适合鉴权页)
node "${SKILL_DIR}/scripts/full-page-screenshot.mjs" --url "https://example.com" /tmp/screenshot.png --width 1200 --dpr 1 --wait 15000
参数表:
| 参数 | 说明 | 默认 |
|---|---|---|
output | 输出 PNG 路径 | /tmp/screenshot.png |
--width | 视口宽度(CSS 像素,文章 1200,仪表盘 1440-1920) | 1200 |
--dpr | 设备像素比(2=Retina,但文件体积约 4 倍) | 1 |
--wait | 页面加载超时 ms(仅 --url 模式) | 15000 |
--css | 截图前注入的自定义 CSS(如隐藏元素) | — |
验证输出:
sips -g pixelWidth -g pixelHeight /tmp/screenshot.png # macOS
file /tmp/screenshot.png # Linux
对仪表盘类宽页面(已登录)截图:
node "${SKILL_DIR}/scripts/full-page-screenshot.mjs" --list
# 从 JSON 中按 title/URL 找到目标,取其 targetId
node "${SKILL_DIR}/scripts/full-page-screenshot.mjs" <targetId> /tmp/dash.png --width 1600 --dpr 1
sips -g pixelWidth -g pixelHeight /tmp/dash.png
工作原理(关键能力):
overflow-y: auto/scroll 容器并滚动触发懒加载,再移除 overflow 约束(含 Tailwind h-[calc(...)]),使全部内容在一次截图中渲染。readyState=complete 后持续监测 DOM 元素数直到稳定,确保 SPA 渲染完成。IntersectionObserver,并等待所有 <img> 加载完成。DevToolsActivePort 文件取调试端口,失败则探测 9222、9229、9333。/eval、/screenshot、/scroll)。反模式(务必避免):
--dpr 2,会触发 Chrome 内存问题;用 --dpr 1。--url;改用 --list + targetId 在已登录标签上截。--wait 设到 5000 以下;用 10000-15000。--check 就截图;先确认调试可用。sips/file 核对尺寸。常见故障:
--wait。--dpr 至 1 并/或降 --width。pip3 install Pillow 或接受分块文件。平台/browser 域下的浏览器自动化技能(CDP/Playwright 通用模式)可与本技能配合,用于截图前的页面交互与定位。本条采编自 alirezarezvani/claude-skills(MIT)。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
66 skills in this plugin
/agentmail-email-infra当 AI 智能体需要真实邮箱完成注册/验证码/事务通信时使用;通过 AgentMail REST API 开通账号、收发邮件、注册 Webhook、查询 karma 余额并产出可执行调用;不适用于自建/企业 SMTP/IMAP 或个人邮箱代收。触发词:AgentMail、智能体邮箱、theagentmail.net/agentphone-voice-sms-agents当需要给 AI 代理配备电话号码、发起/接听语音通话、收发短信、查看通话转写或配置 Webhook 时使用;调用 AgentPhone REST API(base=https://api.agentphone.to/v1)完成代理/号码/通话/短信/Webhook/用量的全生命周期管理,产出可直接执行的 curl 与 Webhook 处理代码;不适用于自建 Twilio/SIP/STUN 等底层电信栈或非 AgentPhone 平台。触发词:电话代理、语音通话、短信、号码、Webhook、转写。/ai-native-cli-design当设计/改造供 AI 智能体调用的命令行工具时使用;按 core/recommended/ecosystem 三层产出 JSON 优先、可校验的 CLI 契约(默认 JSON、结构化错误、退出码、护栏、agent/ 目录与自描述);不适用于纯人类交互 CLI、GUI 或库 API 设计;触发词:agent CLI、AI 友好命令行、CLI JSON 输出、退出码规范、agent/ 目录/amazon-alexa-skill-builder当需要用 ASK CLI + AWS Lambda 开发 Amazon Alexa 语音技能、并以 Claude 作为对话大脑(含 DynamoDB 记忆、Polly 语音、APL 屏显、Smart Home 控制)时使用;做交互模型/Lambda 处理器/部署脚本的搭建与产出;不适用于纯网页/移动 App 或非 Alexa 平台语音助手;触发词:Alexa、ASK CLI、语音技能、Smart Home/apify-actor-development当需要创建、修改或调试 Apify Actor(无服务器 Docker 抓取/自动化程序)时使用;引导选模板、配 input/output schema 与 actor.json、写入口逻辑、本地 apify run 测试并 apify push 部署;不适用于已有现成 Actor 直接调用(用 apify-ecommerce-scraper)、无 APIFY_TOKEN、或普通网页抓取无需打包为 Actor。触发词:apify actor、apify create、apify push、input_schema、actor.json、爬虫部署、serverless scraper、crawlee/apify-actorization当需要把现有 JS/TS、Python 脚本或任意 CLI 工具改造成可在 Apify 平台运行的 Actor(接受 JSON 输入、产出结构化 JSON、打包为 Docker 镜像并部署/变现)时使用;做 apify init 初始化 + SDK 生命周期包裹 + 配置 input/output/actor schema + apify run 本地测试 + apify push 部署,产出可上架的 Actor;不适用于从零写新爬虫、单纯调用现成 Actor、或无 apify CLI/APIFY_TOKEN。触发词:apify actor、actorization、改造成 actor、apify push、apify init、input_schema、serverless 爬虫/10-platform:full-page-screenshotfrom 10-platform
npx claudepluginhub findscripter/everything-skills --plugin 10-platformOther plugins' skills for the same job