微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📸

网页一键转高清长截图

Use agentbrowser to convert html to image · v1.0.0
这个包缺安装入口,装上也不会生效 缺 SKILL.md 或 frontmatter 不完整(BAD_NAME)。我们仍保留下载,方便你自行查看内容。
效率 安全 B 级 作者 upwell 公开目录收录
1k 下载 0 安装 2.9k 收藏 15 浏览

简介

一键将网页、本地HTML或代码片段转换为高清图片,支持自定义尺寸与全页截图,适用于内容存档与视觉验证

原始描述

Takes a URL, HTML file path, or raw HTML code and generates a printable image.

通过你的 Agent 添加

安装目录:use-agentbrowser-to-convert-html-to-image/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/use-agentbrowser-to-convert-html-to-image/
Codex CLI~/.codex/skills/use-agentbrowser-to-convert-html-to-image/
DeepSeek Harness~/.agents/skills/use-agentbrowser-to-convert-html-to-image/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: html_to_image description: "Takes a URL, HTML file path, or raw HTML code and generates a printable image." version: "1.0.0" runtime: shell entrypoint: "bash src/main.sh"

inputs:

  • name: source_type type: string description: "The type of source to render. Must be one of: 'url', 'file', 'code'." required: true
  • name: source_content type: string description: "The actual URL, absolute file path, or raw HTML string depending on source_type." required: true
  • name: format type: string description: "Output image format: 'png', 'jpeg', or 'webp'." required: false default: "png"
  • name: width type: integer description: "Viewport width in pixels." required: false default: 1200
  • name: full_page type: boolean description: "Whether to capture the full scrollable page." required: false default: false

output: type: json description: "JSON object containing the absolute path to the generated image file and its metadata."

HTML to Image Skill (via agent-browser)

This skill utilizes OpenClaw's agent-browser composition to render a URL, local HTML file, or raw HTML string into an image. It executes a lightweight Bash script wrapper.

Usage Guide

When using this skill to generate an image, provide the source_type and source_content.

  • source_type: The content format (url, file, or code).
  • source_content: The target URL, absolute file path, or HTML code block.
  • format: The desired image format (png, jpeg, or webp). Default is png.
  • width: The width of the browser viewport. Default is 1200px.
  • full_page: Set to true to take a full page screenshot instead of just the viewport.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

htmlscreenshotimage-generationbrowser-automationweb-renderingvisual-testingarchive

同类 Skill