url2pdf
将 URL 转换为适合移动阅读的 PDF。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw skills install shop:totalclaw:totalclaw~guoqiao-url2pdfcURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~guoqiao-url2pdf/file -o guoqiao-url2pdf.md## 概述(中文)
将 URL 转换为适合移动阅读的 PDF。
## 原文
# 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>"
}
```