{"uid":"cap_m1p6VprZOGffo8add_RFZ","slug":"agenttoolbox-docs-pack-fetch-aa1c42af","name":"AgentToolbox Docs-Pack Fetch","description":"AgentToolbox: buy tools, verify published outcomes, and submit tools for review. HTTP, x402 and MCP instructions for agents.","url":"https://agi.agenttoolbox2026.workers.dev/v1/products/docs-pack/invoke?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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":[{"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."},{"type":"integer","maximum":9007199254740991,"minimum":0}],"description":"Caller spending cap. Canonical decimal string recommended; safe integer numbers accepted for compatibility. Does not select an amount."},"success_contract_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"Optional SHA-256 of the published canonical success contract. Mismatch prevents new work or payment. Quotes inherit their stored success pin even when this field is omitted."},"payment_requirements_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"Optional SHA-256 of the complete canonical PaymentRequirements object under agenttoolbox-json-v1. Exact string/address case is significant."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1pa96uVdwOxp7NHBuYQNq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches and excerpts relevant documentation content from up to 5 URLs based on a query, returning focused text excerpts for agent use.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Research API authentication from docs","prompt":"Pull the relevant content about OAuth token flows from these three docs pages: https://docs.provider.com/oauth, https://docs.provider.com/tokens, and https://docs.provider.com/scopes — I want up to 5000 characters of excerpts that answer how to refresh an access token."},{"title":"Compare pricing across documentation pages","prompt":"Fetch the pricing and billing sections from https://docs.service.com/pricing and https://docs.service.com/plans and extract up to 4000 characters relevant to 'how much does the pro tier cost'."},{"title":"Understand SDK usage from multiple docs","prompt":"Get me the relevant parts of these SDK docs — https://sdk.example.com/quickstart and https://sdk.example.com/reference — that explain how to initialize the client and make the first API call, up to 6000 characters total."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T18:58:49.388Z","isFirstParty":false,"canonicalSlug":"agenttoolbox-docs-pack-fetch-aa1c42af"}