# AgentRXI Library Docs

> AgentRXI Library Docs is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-15).

Fetches current README and changelog for an npm or PyPI package, highlighting breaking changes since a specified version, to keep AI agents up-to-date on stale training data.

## Facts

- Endpoint: GET https://agentrxi.com/v1/libdocs?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-library-docs-f570fb80
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QR9iDQY-rY01RUWWDjJSp

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 agentrxi-library-docs-f570fb80
```

Example prompt: I'm using LangChain 0.1.0 in Python and my code is probably out of date — can you pull the current docs and tell me what's broken or changed since that version?

## When to prefer this

Use this endpoint when an AI agent needs current, authoritative documentation for a specific software library — especially when training data may be stale and you need to know the actual latest API, usage patterns, or breaking changes since a known version. Prefer this over general web search when you want structured, focused library documentation rather than blog posts or Stack Overflow answers.

## Known failure modes

- Package not found on the specified ecosystem (npm/PyPI) — returns an error indicating unknown package
- Invalid ecosystem value (not 'npm' or 'pypi') — returns a validation error
- from_version does not exist or is malformed — may return no diff or an error
- Package has no changelog or README — returns partial results with available content
- Network or upstream registry timeout — returns a service error

## How this service works

Current library docs for agents with stale training: the latest version of an npm or PyPI package, how to use it now, and the breaking changes since the version you know, from its README and changelog.

## Output

Returns the latest version number of the package, current usage documentation drawn from the README, and a summary of breaking changes between the specified from_version and the latest release drawn from the changelog.

## Request schema (JSON Schema)

```json
{
 "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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "package"
     ],
     "properties": {
      "async": {
       "type": "boolean"
      },
      "package": {
       "type": "string"
      },
      "question": {
       "type": "string"
      },
      "ecosystem": {
       "type": "string",
       "description": "npm | pypi"
      },
      "from_version": {
       "type": "string",
       "description": "Version you know"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentrxi-library-docs-f570fb80/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
