{"uid":"cap_eCv7_nPUQFr-ccGo3Gjtl","slug":"citiview-context-packer-4315c419","name":"Citiview 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://agents.citiviewgroup.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_-aVO4V6VHtOF8QPnlQ6P_","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 URLs to fit a user's question within a specified token budget, returning source-marked excerpts.","exampleAgentPrompt":"From these two URLs — https://example.com/article1 and https://example.com/article2 — extract only the passages most relevant to 'What are the main risks of lithium mining?' and pack them into 1500 tokens with source markers so I can use them in my next prompt.","exampleUseCases":[{"title":"Research question from multiple URLs","prompt":"I have three long articles at these URLs: https://example.com/a, https://example.com/b, https://example.com/c. Can you pull out only the passages that answer 'How does CRISPR gene editing work?' and fit them into 2000 tokens with source markers?"},{"title":"Fitting a long document into a tight prompt","prompt":"I have a 50,000-word legal document as raw text. Extract only the parts relevant to 'indemnification and liability clauses' and keep it under 1000 tokens so I can include it in my prompt."},{"title":"Multi-source context for a chatbot response","prompt":"Before I answer my customer's question about 'What are the side effects of metformin?', grab the relevant passages from https://medref.example.com/metformin and https://druginfo.example.com/metformin, packed into 1800 tokens with source attribution."}],"resultDescription":"A set of the most relevant text passages extracted from the provided URLs or raw texts, trimmed to fit the specified token budget (default 2000 tokens), each annotated with source markers indicating which URL or text it came from.","failureModes":["Missing 'question' parameter returns a validation error","Unreachable or invalid URLs result in fetch errors for those sources","Token budget set too low may return very few or truncated passages","Overly broad questions may yield low-relevance passages","Large numbers of long texts may increase latency or hit size limits","Malformed URL format in the pipe-separated list causes parsing errors"],"whenToPreferThis":"Choose this endpoint when you need to fit relevant content from long documents or multiple web pages into a limited token window for an LLM prompt. It is especially useful when you have more source material than your context window can hold and need automatic relevance ranking and source attribution. Prefer it over full document retrieval when token efficiency matters, or over generic summarization when you need question-specific passage selection rather than a general summary.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:47:02.320Z","isFirstParty":false,"canonicalSlug":"citiview-context-packer-4315c419"}