Tool v1.0.0

url2pdf

将网址转换为适合移动端阅读的PDF

ClawHub 更新于 2026-03-23 18 浏览
下载 SKILL

技能说明

将网址转换为适合移动端阅读的PDF

使用场景

Convert URLs to mobile-optimized PDFs for easy on-the-go reading

查看英文原始说明

Convert URL to PDF suitable for mobile reading.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/url2pdf
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 12 kB · zip 7.1 kB
手动下载 zip · 7.1 kB
SKILL.md text/markdown
---
name: url2pdf
description: Convert URL to PDF suitable for mobile reading.
author: guoqiao
metadata: {"openclaw":{"always":true,"emoji":"🦞","homepage":"https://clawhub.ai/guoqiao/url2pdf","os":["darwin","linux","win32"],"requires":{"bins":["uv"]}}}
triggers:
- "/url2pdf <url>"
- "Save this url as pdf"
- "Convert to pdf for mobile"
---

# URL to PDF

Given a url for a webpage, convert it to pdf suitable for mobile reading.

See [examples](https://github.com/guoqiao/skills/tree/main/url2pdf/examples).

## Requirements

- `uv`

## Installation

playwright itself will be installed by uv automatically, while it also needs browser to be installed:
```
uvx playwright install chromium
```

## Usage

```bash
uv run --script ${baseDir}/url2pdf.py "${url}"
```
Path to pdf will be printed to stdout.

### Agent Instructions

1. **Run the script**: Pass the url to be converted as an argument.
2. **Handle Output**: The script will output a path to a pdf file.
Use the `message` tool to send the pdf file to the user as a document message:
```json
{
   "action": "send",
   "filePath": "<filepath>"
}
```

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。