# AgentRXI Context Packer

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

Extracts and ranks the most relevant passages from long texts or web URLs relative to a question, then packs them into a specified token budget with source markers.

## Facts

- Endpoint: GET https://agentrxi.com/v1/context?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-context-packer-69ae54e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_czHx29UUFZrkDpiuq0afI

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-context-packer-69ae54e2
```

Example prompt: Pull the passages from https://example.com/long-report and https://example.com/supplement most relevant to the question 'What are the key risk factors for mortgage default?' and pack them into a 3000-token budget with source markers.

## When to prefer this

Choose this endpoint when you need to fit relevant information from long documents or web pages into a constrained token window for an LLM prompt. It is especially useful in RAG pipelines, multi-source summarization, or when you want to reduce cost by sending only the relevant parts of large texts rather than the full content. Prefer it over generic summarization when you have a specific question and need source-attributed passages rather than a freeform summary.

## Known failure modes

- URL is inaccessible or returns non-200 — passages from that source will be missing or an error noted
- Token budget too small to include any meaningful passage — may return minimal or empty context
- Question is too vague — relevance ranking may return low-quality or off-topic passages
- Input text or URL content is not in English or is non-textual (e.g. PDF with images) — extraction may fail or return garbage
- Rate limiting or payment failure — returns 402 or service error

## How this service works

Context packer: from long texts or URLs, picks the passages most relevant to your question and packs them into your token budget, with source markers. Fit more useful context into a prompt for less. Also callable as GET with the same fields as query parameters.

## Output

A token-budget-constrained block of the most relevant passages extracted from the provided texts or URLs, annotated with source markers indicating which passage came from which input source.

## 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": [
      "question"
     ],
     "properties": {
      "urls": {
       "type": "string",
       "description": "| separated"
      },
      "texts": {
       "type": "string",
       "description": "| separated or an array"
      },
      "question": {
       "type": "string"
      },
      "token_budget": {
       "type": "integer",
       "description": "Default 2000"
      }
     }
    }
   },
   "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-context-packer-69ae54e2/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)
