82trust / 100

Skill Document Intel

by Skill: Document intelligence in Documents & files

x402 APIPassing, checked 1 h ago

Turn any PDF or image URL into structured data - metadata, extracted text, sliced page ranges, OCR for scanned docs, decoded barcodes / QR codes - without falling back to a vision LLM guess. Built for the messy 30% of documents where pdf-to-markdown alone returns nothing useful. Document intelligence skill pack: one x402 payment runs 7 underlying tools (pdf-info, pdf-to-markdown, pdf-extract-pages, image-ocr, barcode-decode, pdf-merge, images-to-pdf); partial-success per step.

POST https://agent402.tools/api/skill/document-intel

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
195 ms typical, 315 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/skill/document-intel" \
  -H "content-type: application/json" \
  -d '{"url":"https://agent402.tools/fixtures/sample-invoice.pdf"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fskill%2Fdocument-intel
const res = await pay("https://agent402.tools/api/skill/document-intel", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://agent402.tools/fixtures/sample-invoice.pdf"}),
});
console.log(await res.json());

Example input

{
  "url": "https://agent402.tools/fixtures/sample-invoice.pdf"
}

Example output

{
  "args": {
    "url": "https://agent402.tools/fixtures/sample-invoice.pdf"
  },
  "pack": "document-intel",
  "steps": [
    {
      "ok": true,
      "result": {},
      "slug": "pdf-info"
    },
    {
      "ok": true,
      "result": {},
      "slug": "pdf-to-markdown"
    },
    {
      "ok": true,
      "result": {},
      "slug": "pdf-extract-pages"
    },
    {
      "ok": true,
      "result": {},
      "slug": "image-ocr"
    },
    {
      "ok": true,
      "result": {},
      "slug": "barcode-decode"
    },
    {
      "ok": true,
      "result": {},
      "slug": "pdf-merge"
    },
    {
      "ok": true,
      "result": {},
      "slug": "images-to-pdf"
    }
  ],
  "summary": "7/7 steps succeeded"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402193 ms$0.024
5 h agoPassed402191 ms$0.024
9 h agoPassed402195 ms$0.024
12 h agoPassed402194 ms$0.024
17 h agoPassed402306 ms$0.024
20 h agoPassed402195 ms$0.024
23 h agoPassed402315 ms$0.024
28 h agoPassed402527 ms$0.024