api-2-pdf

api-2-pdf is a skill for Claude Code, Codex from withoneai/one-agent-plugin. It costs 0 tokens per session (2,360 once invoked), scanned A, original, MIT.

A document-generation service that turns web pages, HTML, office files, or other content into PDFs, screenshots, and images. It can be used by applications through connected actions.

In plain words
What is it for?
Use it to create PDFs from web content, render screenshots, convert documents, and automate reports or other generated files.
Why use it?
It removes the need to build and maintain your own browser-based document rendering and conversion system.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/withoneai/one-agent-plugin/api-2-pdf
Any agent
npx skills add withoneai/one-agent-plugin --skill api-2-pdf
Clone the repo
git clone --depth 1 https://github.com/withoneai/one-agent-plugin

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-2-pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/withoneai/one-agent-plugin/api-2-pdf.svg)](https://agentmods.dev/skills/withoneai/one-agent-plugin/api-2-pdf)
Your own site
<a href="https://agentmods.dev/skills/withoneai/one-agent-plugin/api-2-pdf"><img src="https://agentmods.dev/badge/skills/withoneai/one-agent-plugin/api-2-pdf.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,360 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02360
Opus 5 $0.00000 $0.01180
Sonnet 5 $0.00000 $0.00472
Haiku 4.5 $0.00000 $0.00236

Measured 3d ago against content hash a4c8b346037f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

api-2-pdf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

platforms/one-api-2-pdf/skills/api-2-pdf/SKILL.md · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Api2Pdf through One

Api2Pdf is a document generation API that converts HTML, URLs, Office files, and raw content into PDFs, screenshots, and images, allowing developers to automate document rendering, reporting, and file conversion workflows within applications and backend systems.

One exposes Api2Pdf through four MCP tools. The table below carries real action ids from One's knowledge base, so for a common operation you can skip search and go straight to reading the action's parameters.

How to run an action

  1. Find the action in the table below, or call search_one_platform_actions with platform api-2-pdf if it is not listed.
  2. Call get_one_action_knowledge with the action id. Do this every time, including for actions in this table. The table gives you the id, not the parameters.
  3. Call execute_one_action with parameters copied from that knowledge.

Never guess a parameter name, a body field, or an enum value. The knowledge has the real schema, and a guessed field is either a 400 or a silent write of the wrong thing.

Before you start

Call list_one_integrations once and confirm Api2Pdf is connected. If it is missing, the user has not connected it: say so and point them at https://app.withone.ai rather than reaching for raw HTTP.

Each connection carries an access field. If it reports {"policy": "methods", "methods": ["GET"]} the agent is read-only here, so plan a read-only answer instead of attempting a write that will be refused.

Before a write

Creates, updates, deletes and sends land on a real Api2Pdf account and cannot be recalled. State the action and the specific target in one line before the first write in a task, and let the user stop you. Reads need no confirmation.

Actions

ChromePdfUrl

Action Method Path Action id
Convert URL to PDF Using Chrome GET /chrome/pdf/url conn_mod_def::GLusyHJNIPM::2FdHL09ARHaK4DK0rRtyOQ
URL to PDF Using Chrome POST /chrome/pdf/url conn_mod_def::GLusyRDk5A4::B-D05Cl6Q4ukw7RGNZfpIA

Read the full file on GitHub · 174 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 174 lines · 0 tokens per session scan A a4c8b346037f

Subscribe to this mod's changes

api-2-pdf is a skill published in the GitHub repository withoneai/one-agent-plugin (1 stars, last pushed 14d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,360 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

document-service

This skill should be used when the user asks to "analyze this codebase", "document this service", "generate technical docs", "I inherited this code", "help me understand this system", "create docs for this project", "what does this system look like", "onboard me to this codebase", "this codebase has no docs"…

awslabs/agent-plugins · 141 tokens

knowledge-distillation

Compile one or more OpenViking knowledge bases or document collections into topic-organized, evidence-grounded high-level knowledge, including cross-source findings, trends, changes, drivers, comparisons, implications, and uncertainties. Use with ov compile when the user asks to distill or synthesize a knowledge base…

volcengine/OpenViking · 89 tokens

ov-add-paper

Load when the user asks to add, import, compile, or ingest a research paper/PDF into OpenViking, especially when they mention ov-add-paper, ARA, claims, evidence, figures, tables, or paper-to-OV knowledge resources.

volcengine/OpenViking · 55 tokens

devexpress-reports-core

Create reports programmatically with DevExpress XtraReports runtime API (.NET and .NET Framework). Build XtraReport in code, add bands (DetailBand, GroupHeaderBand), controls (XRLabel, XRTable, XRChart), parameters, expressions. Bind to data sources, calculated fields, group reports. Export to PDF, Excel, Word, CSV…

DevExpress/agent-skills · 110 tokens

devexpress-office-file-api-ai-powered-extensions

Build .NET applications with the DevExpress AI-Powered Extensions for Office File API to add NLP-powered document processing capabilities — proofreading, translation, and text transformation for Word documents, PDF files, and PowerPoint presentations. Use when integrating AI language models (Azure OpenAI, OpenAI…

DevExpress/agent-skills · 148 tokens

devexpress-office-file-api-excel-export

Build .NET applications with the DevExpress Excel Export Library for streaming generation of Excel files with low memory footprint. Use when generating large Excel reports, writing rows sequentially, building Excel files from data grids or report engines, or when the full Spreadsheet Document API would use too much…

DevExpress/agent-skills · 131 tokens