跳到正文
TakoAPI
返回技能列表

url2pdf

由 guoqiao 提供

Browser & Automation
946下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Convert URL to PDF suitable for mobile reading.

描述

该技能的功能

Converts a webpage URL to a PDF formatted for mobile reading. Uses Playwright with a headless Chromium browser to render the page accurately. The output PDF path is returned for delivery to the user.

Uses a real browser engine to render pages accurately, capturing styles and layout that simpler HTML-to-PDF converters miss.

何时使用

  • Save a long article for offline reading on your phone
  • Archive a recipe page as a portable document
  • Convert documentation to PDF for commute reading
  • Preserve a news article before it goes behind a paywall
  • Share a webpage as a file attachment

示例工作流

输入

User asks: 'Save https://example.com/article as a PDF for mobile'

智能体
  1. 1

    Runs url2pdf.py with the provided URL as an argument

  2. 2

    Playwright renders the page in a headless Chromium browser

  3. 3

    Script outputs the path to the generated PDF file

  4. 4

    Agent sends the PDF to the user as a document message

输出

PDF file of the webpage delivered to the user, optimized for mobile screen dimensions

前置要求

  • uv package manager installed
  • Chromium browser installed via: uvx playwright install chromium

安装

clawhub install guoqiao/url2pdf

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接