{"uid":"cap_487oY-LJYxF3_PcxqOrAr","slug":"agentstools-library-documentation-lookup-6e36f168","name":"AgentsTools Library Documentation Lookup","description":"Up-to-date, version-pinned documentation for a library or API, for coding agents. Give an ecosystem and a package name (optional version and topic) and get a compact doc slice: package identity (latest and requested version, license, repo, homepage and doc URLs, version list) plus the README or llms.txt section matching the topic, each with a provenance citation. Keyless PyPI, npm, crates and GitHub sources.","url":"https://api.agentstools.dev/docs/library?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["name","ecosystem"],"properties":{"name":{"type":"string","description":"Package name; for github pass owner/repo such as coinbase/x402. npm scoped names @scope/name are allowed."},"topic":{"type":"string","description":"Optional topic or symbol; matched against the README/llms.txt markdown headings, such as authentication or useEffect."},"version":{"type":"string","description":"Optional exact version to pin, such as 2.31.0; default is latest."},"ecosystem":{"enum":["npm","pypi","crates","github"],"type":"string","description":"Package ecosystem. Aliases accepted: pip and python map to pypi; cargo and rust map to crates; node maps to npm; gh maps to github."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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":{"p10Cents":"1.0000","medianCents":"1.0000","p90Cents":"1.0000","minCents":"1.0000","maxCents":"1.0000","p95Cents":"1.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"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_M9CK7-p1j4IzCI0gIaIic","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":"Returns version-pinned package documentation (README or llms.txt section) plus identity metadata for npm, PyPI, crates.io, or GitHub packages, matched to an optional topic.","exampleAgentPrompt":"Can you pull up the PyPI docs for the 'requests' library version 2.31.0, specifically the section on authentication?","exampleUseCases":null,"resultDescription":"A JSON object containing package identity fields (latest version, requested version, license, repo URL, homepage URL, docs URL, version list) plus the README or llms.txt markdown section matching the requested topic, each with a provenance citation indicating the source registry.","failureModes":["Package not found in the specified ecosystem — returns 404 or empty result","Version not found — requested pinned version does not exist in the version list","Topic not matched — no heading in README/llms.txt matches the topic string, falls back to full README or returns empty section","Unsupported ecosystem alias — unrecognized ecosystem string returns validation error","Rate limit or payment failure — x402 payment not processed, returns 402"],"whenToPreferThis":"Use this endpoint when a coding agent needs accurate, version-pinned library documentation without hallucination risk — especially when the agent needs to reference a specific API surface, authenticate usage, or verify a package's license and identity across npm, PyPI, crates.io, or GitHub without requiring an API key.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:45:49.118Z","isFirstParty":false,"canonicalSlug":"agentstools-library-documentation-lookup-6e36f168"}