360 Secure SkillHub
360 安全技能中心

URL to PNG

接收网页 URL,用 uv 安装的 shot-scraper + Playwright/Chromium 抓取整页长截图,保存为 PNG(默认 ~/Pictures,可指定路径),并把图片以文件形式发给用户。仅声明支持 darwin/linux。

guoqiao
guoqiao
热度 84.15
最近更新 2026-05-17 11:48:59
分类:效率依赖:代码执行 / 联网浏览搜索 / 读写文件应用场景:文件转换 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add url2png
Metadata
name
url2png
description
Convert URL to PNG suitable for mobile reading.
metadata
{"openclaw":{"always":true,"emoji":"🦞","homepage":"https://clawhub.ai/guoqiao/url2png","os":["darwin","linux"],"requires":{"bins":["uv"]}}}
triggers
["/url2png <url>","Save this url as image ...","Take long screenshot for this url"]

URL to PNG

Given a url for a webpage, convert it to png suitable for mobile view.

See examples

Requirements

  • uv

Installation

bash ${baseDir}/install.sh

The script will:

  • install shot-scraper as uv tool
  • install chromium browser module for shot-scraper/playwright

Usage

# save to ~/Pictures with proper name by default
bash url2png.sh <url>
# specify output png path
bash url2png.sh <url> path/to/png

Agent Instructions

  1. Execute the url2png.sh script.
  2. Locate the generated PNG file (default in ~/Pictures if not specified).
  3. Send the file to the user. Crucial: To avoid compression or dimension limits (especially on Telegram), send the image as a document/file (or ZIP it), do not send as a photo.