PDF processing pipeline

Full PDF processing pipeline - metadata, markdown conversion, and first-page extraction in one call.

$0.007 per call · one payment for the whole workflow
POST /api/skill/pdf-pipeline
Sample output + API docs →

3 tools run server-side in one request. You pay once, settle once, and get a single response - no orchestration, no per-step payments, and a partial-success envelope if any step fails. USDC over x402 on any supported chain.

When to use this pack

An agent receives a PDF URL and needs to understand it quickly: what's the page count and metadata, what does the full text say (as markdown), and what's on page 1? Running three separate tools is three payments; this pack does it in one.

Tools in this pack

All 3 run inside the single $0.007 call above. Each is also callable on its own if you only need one part.

Bought one at a time, these 3 tools cost $0.007 together; the pack is that sum less a 10% bundle discount, rounded up to the $0.001 settlement floor, which is $0.007.

Workflow

  1. Call pdf-info to get page count, file size, title, author, and other metadata.
  2. Call pdf-to-markdown to convert the entire PDF to clean markdown text.
  3. Call pdf-extract-pages with pages='1' to get just the first page as a separate document.

Arguments

NameRequiredDescriptionExample
urlyesURL of the PDF to processhttps://arxiv.org/pdf/1706.03762

What one call returns

A JSON object with pack, args, steps, summary; steps holds one entry per tool (pdf-info, pdf-to-markdown, pdf-extract-pages), each with its own result or error. Full example on the API page.

Call it directly

Any x402 client pays the 402 and gets the whole workflow back in one response. With the agent402-client SDK (npm i agent402-client, an ES module):

import { Agent402 } from "agent402-client";
// payFetch: an x402-wrapped fetch your wallet signs (@x402/fetch).
// Tools on the free tier need no options: new Agent402() pays them by proof-of-work.
// an existing prepaid credits key also works: new Agent402({ creditsKey })
const client = new Agent402({ fetch: payFetch });
const result = await client.call("skill-pdf-pipeline", {"url":"https://arxiv.org/pdf/1706.03762"});

Run it in Claude

claude mcp add agent402 -s user -- npx -y agent402-mcp@latest

Then paste this prompt into Claude:

Process the PDF at https://arxiv.org/pdf/1706.03762 using Agent402's pdf-pipeline skill pack: (1) pdf-info for metadata, (2) pdf-to-markdown for full text, (3) pdf-extract-pages for page 1. Summarize the document structure and first-page content.

← All skill packs