TopRank Skills

Home / Claw Skills / Git / GitHub / url2pdf
Official OpenClaw rules 36%

url2pdf

Convert URL to PDF suitable for mobile reading.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

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

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 url2pdf 技能。 若已安装,则直接安装 url2pdf 技能。

Overview

Skill Key
guoqiao/url2pdf
Author
guoqiao
Source Repo
openclaw/skills
Version
-
Source Path
skills/guoqiao/url2pdf
Latest Commit SHA
b2cdd78e236a9a7f879e9a53aebeb00a5358838c

Extracted Content

SKILL.md excerpt

# 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>"
}
```

Related Claw Skills