InputPOST /api/v1/x402/string-trunc
{
"text": "abcdefghijklmnopqrstuvwxyz",
"max_chars": 10,
"ellipsis": "…"
}
Agent data quality · data-quality
Truncate a string to max_chars with optional ellipsis. Call when you need this bounded result before handing data to a downstream tool. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Honest limit: execution uses only caller-supplied data in memory; it does not call a paid upstream, retain input, search the web, read a live RPC, or invoke a media generator. Results are advisory; the caller owns authorization, budgets, and production controls.
One-command purchase
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/string-trunc -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"text":"abcdefghijklmnopqrstuvwxyz","max_chars":10,"ellipsis":"…"}'
{
"text": "abcdefghijklmnopqrstuvwxyz",
"max_chars": 10,
"ellipsis": "…"
}
{
"schema": "delx/util-string-trunc/v1",
"ok": true,
"result": "abcdefghi…",
"truncated": true,
"original_chars": 26,
"max_chars": 10
}
Machine-readable evidence