latchshot-page-capture
它能做什么
这个工具可以对公开的网页进行截图,并把它们保存到电脑上,格式可以是 PNG、JPEG 或 PDF。它既能保存整个页面,也能把网页生成为 PDF 文件。
适用场景
- ✓把网页保存为图片,用于报告。
- ✓制作社交媒体上使用的网站缩略图。
- ✓把网页转换为 PDF 文件进行存档。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/latchshot-page-capture/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“对 NASA 官网首页截图,并保存为 PNG 格式。”
每周 5 个新技能,1 分钟读完。
工作原理
你提供一个公开网页的链接,工具会访问该页面,生成图片或 PDF 文件。它的原理是保存页面上可见的内容。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Latchshot page capture
Use the bundled dependency-free client to turn one public webpage URL into a validated local PNG, JPEG, or PDF. Start with a constrained no-key JPEG demo when appropriate. Authenticated commands send the API key only to the fixed https://latchshot.fly.dev origin, and every artifact is written atomically.
Latchshot is a hosted third-party service maintained by this skill's contributor. Keep its use optional and preserve an existing local-browser workflow when the task needs private pages or unsupported browser actions.
Prerequisite
Require Node.js 20 or newer and network access. Read the key only from LATCHSHOT_API_KEY for authenticated capture and usage commands.
If the variable is missing, use the no-key demo for one bounded JPEG when it fits the request. For PNG, PDF, full-page, cleanup, or repeat work, direct the user to the Agent Skills setup documentation, then stop. Never ask the user to paste a key into chat, a command argument, source code, a committed file, or output. Never print or return the key.
No-key demo
Use this command for a public page when a viewport JPEG is acceptable:
node scripts/latchshot.mjs demo \
--url 'https://example.com' \
--output './artifacts/example-demo.jpg'
The demo is JPEG-only, does not use an account or render quota, and allows three attempts per IP address per hour. It accepts only width, height, query confirmation, and explicit overwrite options. The public URL is still sent to Latchshot, and the request carries the coarse agentskill acquisition label. Reject private pages, secrets, signed URLs, and authenticated access exactly as in the capture workflow. Treat the result as a proof artifact, not as a customer activation or plan signup.
Capture workflow
Confirm the target is a public HTTP or HTTPS page. Reject credentials, private/internal pages, non-web ports, signed URLs, query secrets, and any request requiring login, cookies, CAPTCHA handling, proxy rotation, arbitrary scripts, clicks, typing, or anti-bot bypass.
Choose a user-approved output path. Infer the format from
.png,.jpg/.jpeg, or.pdf, or pass the matching--formatexplicitly.Run the client from this skill directory:
node scripts/latchshot.mjs capture \ --url 'https://example.com' \ --output './artifacts/example.png'For a bounded full-page screenshot that activates lazy content:
node scripts/latchshot.mjs capture \ --url 'https://example.com' \ --output './artifacts/example-full.png' \ --full-page \ --scroll-pageFor a PDF:
node scripts/latchshot.mjs capture \ --url 'https://example.com' \ --output './artifacts/example.pdf' \ --paper A4Parse the one-line JSON result. Confirm
ok,output,format,contentType, andbytes; inspect the local artifact when the surrounding task requires visual or document verification. Report the path and relevant render/quota diagnostics without exposing the key.
Run node scripts/latchshot.mjs --help for the exact bounded options. Use --block-ads, --block-trackers, --block-chats, --hide-cookie-banners, and --hide-popups only as best-effort cleanup—not bypass. Use --allow-query only after confirming that the query contains no credential, signature, token, customer data, or other secret. The client refuses to overwrite a file unless --force is explicit.
Read quota
Use the read-only command when the user asks about remaining renders or reset time:
node scripts/latchshot.mjs usage
This does not consume render quota or change a plan.
Failure handling
- Read the structured error code and message from stderr; do not retry validation or authentication failures.
- For
demo_limit, wait for the hourly reset rather than looping or switching identities. - For
rate_limited, wait for the reported reset or retry-after boundary rather than looping. - For a render failure, state the failure and preserve any existing output file. Do not silently substitute a local browser, a different provider, or unsupported private-page access.
- Do not initiate an upgrade, checkout, payment, implementation request, or other commercial action. Those remain user- and owner-controlled.
Hard boundaries
…
常见问题
可以用来截取需要登录的页面吗?
不可以。这个工具只能处理任何人无需登录或提供私人信息就能访问的网页。
可以从页面中提取特定信息吗?
不可以。这个工具只会把页面保存为图片或 PDF,不会替你提取特定的文字或数据。
如果页面没有完全加载会怎样?
工具会尝试截取完整页面,即使内容加载较慢,但如果加载出现问题,它无法保证所有内容都能被截取到。
详情
作者的原始描述
Use this skill when a user needs a screenshot, website thumbnail, full-page capture, or PDF of a public HTTP(S) webpage saved as a local artifact through Latchshot, including report, QA, archive, and social-preview workflows. Do not use it for private or authenticated pages, raw HTML, scraping or extraction, arbitrary browser actions, CAPTCHA or anti-bot bypass, or local-file capture.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7267
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。