| name | url2pdf |
| description | Convert URL to PDF suitable for mobile reading. |
| author | guoqiao |
| metadata | {"openclaw":{"always":false,"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.
Requirements
Installation
uvx will install shot-scraper automatically on first run.
No explicit installation needed.
Usage
bash ${baseDir}/url2pdf.sh "${url}"
Path to pdf will be printed to stdout.
Agent Instructions
- Run the script: Pass the url as an argument.
- 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:
{
"action": "send",
"filePath": "<filepath>"
}