🧪 Skills
URL to PDF
--- 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":
v0.0.2
Description
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
" - "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
uv
Installation
playwright itself will be installed by uv automatically, while it also needs browser to be installed:
uvx playwright install chromium
Usage
uv run --script ${baseDir}/url2pdf.py "${url}"
Path to pdf will be printed to stdout.
Agent Instructions
- Run the script: Pass the url to be converted as an argument.
- Handle Output: The script will output a path to a pdf file.
Use the
messagetool to send the pdf file to the user as a document message:
{
"action": "send",
"filePath": "<filepath>"
}
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!