Skip to content
onelayer.
All tools

Tool detail

Context Compact

Fetches a public HTTPS page and compacts its content into a token budget, LLM-summarized with an extractive fallback.

Categories: Web scraping, Text processing

Use when

  • summarize a long public webpage into a fixed token budget
  • fetch and compress a URL's content before feeding it to another model

Not for

  • not for private or authenticated pages — public https URLs only
  • not guaranteed LLM-quality output — falls back to extractive summary if unavailable

Inputs

POST JSON body: { source_url: string, public https URL (required) }; focus (string), max_tokens (integer) (optional)

Admitted input schema

{
  "type": "object",
  "properties": {
    "focus": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096
    },
    "max_tokens": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "source_url": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Public https URL to compact"
    }
  },
  "required": [
    "source_url"
  ],
  "additionalProperties": false
}

Endpoint

Method
POST
URL
https://ari001.tailb4ac3a.ts.net/v1/context/compact

Payment

Protocol
x402
Listed price
0.01 USDC per call on Base
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
POST https://ari001.tailb4ac3a.ts.net/v1/context/compact
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z