Url2pdf

Convert URL to PDF suitable for mobile reading.

guoqiao Updated

File contents

URL to PDF

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

See examples.

Requirements

  • uvx

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

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

guoqiao/skills/tree/main/url2pdf/url2pdf commit d07b883c89

Frequently asked questions

npx skillmds@latest add guoqiao/url2pdf