{"uid":"cap_czHx29UUFZrkDpiuq0afI","slug":"agentrxi-context-packer-69ae54e2","name":"AgentRXI Context Packer","description":"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.","url":"https://agentrxi.com/v1/context?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"],"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_c8JQ_z7Pd2HZ2HJxZ9Z5Q","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"RAG context from research paper URLs","prompt":"I have these two long research paper URLs and I want to know 'What methods did they use for data augmentation?' — extract only the relevant passages from both and fit them into a 2000-token budget so I can include them in my prompt."},{"title":"Trim legal document to relevant clause","prompt":"I'm pasting this 10-page contract text below — can you pull out only the sections relevant to 'termination and severance obligations' and pack them into 1500 tokens with markers showing where each snippet came from?"},{"title":"Multi-source answer context for chatbot","prompt":"Grab the most relevant context about 'how does compound interest work' from these three URLs: https://site1.com/finance, https://site2.com/investing, https://site3.com/basics — pack it into 2500 tokens so I can feed it to my assistant as background."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:38:55.499Z","isFirstParty":false,"canonicalSlug":"agentrxi-context-packer-69ae54e2"}