📸
简介
命令行网页截图工具,支持全页、设备模拟、暗色模式,可捕获任意网站并发送给用户。
原始描述
Capture website screenshots from the command line. Use when user wants to take screenshots of any URL (Twitter, news sites, webpages) and send them via Disco...
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
Claude Codeunzip -o skill.zip -d ~/.claude/skills/capture-website/
其它 Agent解压到它自己的 skills 目录,目录名用 capture-website
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
技能正文
name: capture-website version: 1.0.0 description: Capture website screenshots from the command line. Use when user wants to take screenshots of any URL (Twitter, news sites, webpages) and send them via Discord/Feishu. Requires capture-website-cli to be installed (npm install -g capture-website-cli).
Capture Website Screenshot
Take screenshots of any website and send to user.
Quick Start
capture-website <URL> --output=/home/aaronz/.openclaw/workspace/screenshot.png
Common Options
| Option | 说明 | 示例 |
|---|---|---|
--output |
输出文件路径 | --output=/tmp/screenshot.png |
--full-page |
截取完整页面 | --full-page |
--width |
页面宽度 | --width=1280 |
--height |
页面高度 | --height=800 |
--type |
图片格式 | --type=png 或 --type=jpeg |
--delay |
加载后等待秒数 | --delay=2 |
--wait-for-element |
等待元素出现 | --wait-for-element=.content |
--dark-mode |
暗色模式 | --dark-mode |
--emulate-device |
模拟设备 | --emulate-device="iPhone X" |
Workflow
- Run capture-website command with URL
- Save to workspace folder:
/home/aaronz/.openclaw/workspace/ - Send via message tool with filePath
Example
capture-website https://x.com/elonmusk/status/2026052687423562228 \
--output=/home/aaronz/.openclaw/workspace/tweet.png \
--width=1280 \
--height=800
Then send the file to user via Discord.
Notes
- Requires:
npm install -g capture-website-cli - Default timeout: 60 seconds
- If screenshot fails, try adding
--delay=2for slow-loading pages
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。