{"uid":"cap_CISBOkaKGczqSbw7RfDPs","slug":"xerxes-context-compactor-b311a627","name":"Xerxes Context Compactor","description":"Use when an agent must fit a public HTTPS page into a token budget. Fetches the URL and compacts it. LLM first; extractive fallback if the bus is down. A failed fetch is not an empty document.","url":"https://ari001.tailb4ac3a.ts.net/v1/context/compact","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"focus":{"type":"string"},"max_tokens":{"type":"integer"},"source_url":{"type":"string","description":"Public https URL to compact"}}},"responseSchema":{"type":"json","example":{"ok":true,"method":"llm","compact":"Base is an Ethereum L2.","service":"context_compact","source_url":"https://docs.base.org"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_D_Ak3qsb_xpqnQc1PDVTY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a public HTTPS webpage and compresses its content to fit within a specified token budget, using LLM-based compaction with extractive fallback.","exampleAgentPrompt":"Can you fetch the page at https://example.com/blog/ai-agents and compact it down to 1500 tokens, focusing on the sections about multi-agent orchestration?","exampleUseCases":[{"title":"Research article within context window","prompt":"Pull down this research paper at https://arxiv.org/abs/2401.12345 and compact it to 2000 tokens so I can feed it into my analysis — focus on the methodology section."},{"title":"Competitor landing page digest","prompt":"Fetch https://competitor.com/pricing and compress it to 800 tokens so I can drop it into my prompt — I care most about the plan tiers and limits."},{"title":"Documentation snippet for agent reasoning","prompt":"Grab the docs page at https://docs.example.com/api/reference and squish it down to 1200 tokens, focusing on authentication, so my agent can reason about how to call the API."}],"resultDescription":"Returns the compacted text content of the fetched webpage, reduced to fit within the requested token budget. If an LLM-based compaction is available it is used; otherwise an extractive fallback is applied. A failed fetch is returned as an error state, not as an empty document.","failureModes":["URL is not publicly accessible or returns a non-200 status — returns a fetch error, not empty content","URL is not HTTPS or is malformed — request rejected","LLM compaction service unavailable — falls back to extractive method; if both fail, error returned","max_tokens value too small to meaningfully represent the page — may produce truncated or low-quality output","Page is behind authentication or bot-detection — fetch may fail or return login wall content"],"whenToPreferThis":"Use this endpoint when you need to include the content of a public webpage in an LLM prompt but are constrained by token limits. It is the right choice when you need both reliable fetching and intelligent compression in a single call, rather than chaining a separate scraper with a summarizer. Prefer it over raw fetch tools when token budget is a hard constraint, and over generic summarizers when you need the actual condensed page content (not just a summary) with a fallback guarantee.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:39:56.592Z","isFirstParty":false}