# Agent Rescue Desk — Private PDF Citation Kit

> Agent Rescue Desk — Private PDF Citation Kit is a paid API for AI agents from agent-rescue-desk.netlify.app, paid per call via x402, $39/call, status unknown (last checked 2026-10-19).

Delivers a self-contained, client-side HTML tool for extracting text and block-level citations from PDF files, licensed for internal use, returned as a base64-encoded HTML file.

## Facts

- Endpoint: POST https://agent-rescue-desk.netlify.app/api/agent402/private-pdf-citation-kit?utm_source=zero.xyz
- Price: $39/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-rescue-desk-private-pdf-citation-kit-63d83480
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_66bcjQWD7rMUKusBuAjyK

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-rescue-desk-private-pdf-citation-kit-63d83480 -d '<json body>'
```

Example prompt: Can you get me the Agent Rescue Desk Private PDF Citation Kit — I need the html-base64 delivery format with an internal-use license so I can extract citations from PDFs locally without sending any documents to an external server?

## When to prefer this

Choose this endpoint when you need a self-contained, client-side PDF text extraction and citation tool that runs entirely in the browser with no document data leaving the client, especially for internal RAG or agent evidence pipelines where privacy and citation ID preservation are critical. Prefer it over cloud OCR or hosted PDF APIs when data privacy, offline use, or local citation fidelity are hard requirements.

## Known failure modes

- Invalid or malformed query JSON (missing delivery or license fields) — likely returns a 400 or validation error
- Payment not completed via x402 — returns 402 Payment Required before delivering the kit
- Query string does not match expected exact values for delivery or license — may return an error or empty response
- Request timeout if the base64 payload encoding is slow on the server side

## How this service works

Fixed-scope diagnosis and repair for one broken AI agent workflow or MCP integration. $1,000. Decisive outcome in 12 hours.

## Output

A JSON response containing a base64-encoded self-contained HTML file (the PDF Citation Kit), its SHA-256 checksum, byte count, version date, license details (product and Apache-2.0 dependency for PDF.js), privacy statement, service boundaries (e.g. text-layer only, no OCR, max 5 files/50 MB/200 pages), and a next-step object with escalation guidance and a fit-review URL for hands-on rescue if needed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "maxLength": 200,
   "minLength": 45,
   "description": "A JSON string with exactly {\"delivery\":\"html-base64\",\"license\":\"internal-use\"}. The response contains the licensed kit; do not submit document bytes."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "bytes": 2318407,
  "sha256": "1ac2ca59cac3a623a76cd9433cc29ac3d1693af9c1cf8ba2faa697b78f4a6c14",
  "status": "complete",
  "license": {
   "product": "The Agent Rescue Desk app and interface are licensed to the purchaser for internal use; redistribution or resale is not permitted. This restriction does not limit the Apache-2.0 rights granted for the included PDF.js portions.",
   "dependency": "The complete Apache-2.0 license for the included PDF.js runtime is embedded in the delivered HTML."
  },
  "privacy": "The kit makes no automatic network request and uses no browser storage. Its optional rescue fit-review link is the only network navigation and occurs only if the buyer chooses to open it; selected PDFs, extracted text, and exact terms are never transmitted.",
  "service": "Agent Rescue Desk Private PDF Citation Kit",
  "version": "2026-07-28",
  "encoding": "base64",
  "filename": "agent-rescue-desk-private-pdf-citation-kit-2026-07-28.html",
  "nextStep": {
   "instruction": "Submit one secret-free fit review for a bounded PDF evidence-pipeline rescue. Payment is requested only after fit and written scope acceptance.",
   "escalateWhen": [
    "A production PDF-to-agent or RAG evidence path is still failing after extraction.",
    "Page and block citation IDs are not preserved through the downstream agent workflow.",
    "One authorized integration or implementation path needs hands-on diagnosis beyond the local extraction tool."
   ],
   "fitReviewUrl": "https://agent-rescue-desk.netlify.app/?source=private-pdf-kit#intake",
   "rescuePriceUsd": 1000,
   "rescueServiceWindowHours": 12
  },
  "mediaType": "text/html",
  "boundaries": [
   "Text-layer extraction only; no OCR or password bypass.",
   "The exact-term check is not proof of secure redaction.",
   "No document modification, legal review, accessibility certification, or layout-fidelity certification.",
   "Maximum 5 files, 50 MB total, 200 pages, and 1,000,000 extracted characters per browser session."
  ],
  "htmlBase64": "<base64-encoded self-contained HTML delivered after payment>",
  "instructions": [
   "Decode htmlBase64 as standard base64.",
   "Save the decoded bytes exactly as agent-rescue-desk-private-pdf-citation-kit-2026-07-28.html.",
   "Open the saved file in a current desktop browser.",
   "Select authorized PDFs and process them locally in that browser tab."
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-rescue-desk-private-pdf-citation-kit-63d83480/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-rescue-desk.netlify.app](https://www.zero.xyz/host/agent-rescue-desk.netlify.app/llms.txt)
