Cut text so it fits a token budget for an LLM context window or a tool output li...
https://agents.204-168-199-108.sslip.io/v1/util/truncate-tokensOverview
Cut text so it fits a token budget for an LLM context window or a tool output limit. Strategies: head (keep the start), tail (keep the end, e.g. logs), middle (keep start + end, cut the middle) and sentences (keep the start, cut at a sentence end). Cuts on word / sentence boundaries, adds a visible marker, and returns original vs result token estimates (GPT/Claude-style BPE), characters and % kept.
Health
x402 Payment Validation
Input Schema
Output Schema
Recent Health Checks
| Time | Status | HTTP | Latency | Error |
|---|---|---|---|---|
| 2026-12-05 01:35:13 | healthy | 402 | 112ms | |
| 2026-12-05 00:58:22 | healthy | 402 | 111ms | |
| 2026-12-04 18:28:56 | healthy | 402 | 2060ms |