# AgentToolbox Docs-Pack Fetch

> AgentToolbox Docs-Pack Fetch is a paid API for AI agents from agi.agenttoolbox2026.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-27).

Fetches and excerpts relevant documentation content from up to 5 URLs based on a query, returning focused text excerpts for agent use.

## Facts

- Endpoint: POST https://agi.agenttoolbox2026.workers.dev/v1/products/docs-pack/invoke?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttoolbox-docs-pack-fetch-aa1c42af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m1p6VprZOGffo8add_RFZ

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 agenttoolbox-docs-pack-fetch-aa1c42af -d '<json body>'
```

Example prompt: Fetch the relevant sections from these two documentation pages — https://docs.example.com/api and https://docs.example.com/auth — that explain how authentication works, and give me up to 4000 characters of excerpts.

## When to prefer this

Choose this endpoint when an AI agent needs to retrieve and focus on relevant portions of documentation from known URLs based on a specific query, especially in agentic pipelines where paying per-call via x402/USDC micro-payments is acceptable and the agent needs targeted excerpts rather than full page content.

## Known failure modes

- URL unreachable or returns non-200 — excerpt for that URL may be empty or error noted
- Query too short (under 2 chars) or too long (over 120 chars) — validation error returned
- More than 5 URLs submitted — schema validation rejection
- max_excerpt_chars out of range (below 1000 or above 6000) — validation error
- Payment not processed via x402 — 402 Payment Required response before content is returned
- URL content is not parseable or is binary — empty excerpt returned

## How this service works

AgentToolbox: buy tools, verify published outcomes, and submit tools for review. HTTP, x402 and MCP instructions for agents.

## Output

A JSON response containing extracted text excerpts from the provided documentation URLs, filtered and trimmed to the specified maximum character length and most relevant to the submitted query.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "$schema": "https://json-schema.org/draft/2020-12/schema",
   "required": [
    "urls",
    "query",
    "max_excerpt_chars"
   ],
   "properties": {
    "urls": {
     "type": "array",
     "items": {
      "type": "string",
      "maxLength": 512
     },
     "maxItems": 5,
     "minItems": 1
    },
    "query": {
     "type": "string",
     "maxLength": 120,
     "minLength": 2
    },
    "max_excerpt_chars": {
     "type": "integer",
     "default": 4000,
     "maximum": 6000,
     "minimum": 1000
    }
   },
   "additionalProperties": false
  },
  "version": {
   "type": "string",
   "const": "0.1.1"
  },
  "agent_id": {
   "type": "string",
   "format": "uuid",
   "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
   "description": "Optional random UUID pseudonym (e.g. crypto.randomUUID()); not authenticated identity. Omit if unavailable."
  },
  "quote_id": {
   "type": "string",
   "format": "uuid",
   "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  },
  "prepared_id": {
   "type": "string",
   "format": "uuid",
   "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  },
  "referral_code": {
   "type": "string",
   "pattern": "^ref_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
   "description": "Public referral code returned by registration. First-party tools only; preserve it in the original invoke body on every replay."
  },
  "review_secret_hash": {
   "type": "string",
   "pattern": "^[0-9a-f]{64}$",
   "description": "Optional SHA-256 hex of caller-kept atbr_ secret (32 random bytes). Bound to this paid request; never send the raw secret here."
  },
  "payment_amount_atomic": {
   "type": "string",
   "pattern": "^(0|[1-9][0-9]{0,77})$",
   "description": "Canonical decimal USDC atomic-unit string (6 decimals). Protocol uint256 maximum 115792089237316195423570985008687907853269984665640564039457584007913129639935. No business maximum. Product minimum: 10000. Must equal the exact quoted/signed amount."
  },
  "max_charge_usdc_atomic": {
   "anyOf": [
    {
     
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttoolbox-docs-pack-fetch-aa1c42af/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agi.agenttoolbox2026.workers.dev](https://www.zero.xyz/host/agi.agenttoolbox2026.workers.dev/llms.txt)
