{"uid":"cap_5ZYFKBjIbssGcvpmsqQpz","slug":"agenttexttools-by-lin-desk-f3be0108","name":"AgentTextTools by LIN Desk","description":"Deterministic text tools for AI agents: normalize, strip HTML, sha256/blake2b, truncate, slugify, count, dedupe lines, OpenCC zh convert. $0.001 per call, USDC on Base (x402). Max body 100 KiB. No network I/O. Failures are not charged.","url":"https://lin-desk-x402.lindesk.workers.dev/v1/texttools?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"op":{"enum":["blake2b","count","dedupe_lines","normalize","sha256","slugify","strip_html","truncate","zh"],"type":"string","description":"Text tool operation"},"input":{"type":"string","description":"Input text; max 100 KiB"},"options":{"type":"object","description":"Op-specific options (collapse_whitespace, max_chars, mode, digest_size, ...)"}}},"responseSchema":{"type":"json","example":{"op":"normalize","meta":{"chars_in":13,"chars_out":11,"elapsed_ms":1},"result":"Hello World"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UIrhWGLPbKHmQ6-o9m57-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs deterministic text operations for AI agents including normalization, HTML stripping, hashing (SHA-256/BLAKE2b), truncation, slugification, line deduplication, character counting, and Chinese script conversion (OpenCC).","exampleAgentPrompt":"Strip the HTML tags from this text and then slugify it: '<h1>Hello, World! Welcome to my Blog</h1>' — I need a clean URL-safe version.","exampleUseCases":[{"title":"Sanitize user-submitted HTML content","prompt":"Take this user comment and strip all the HTML tags out of it so I can store it as plain text: '<p>Great post! <b>Really</b> loved it. <script>alert(\"xss\")</script>'"},{"title":"Generate a SHA-256 fingerprint for deduplication","prompt":"Compute the SHA-256 hash of this text so I can use it as a deduplication key: 'Invoice #4521 – Acme Corp – $1,250.00 – Due 2025-08-01'"},{"title":"Convert Traditional Chinese to Simplified Chinese","prompt":"Convert this traditional Chinese text to simplified Chinese using OpenCC: '臺灣是一個美麗的島嶼，擁有豐富的文化與自然景觀。'"}],"resultDescription":"A JSON response containing the result of the requested text operation — e.g. a cleaned string, a hex digest, a slug, a line count, or deduplicated lines. No network I/O is performed; results are fully deterministic. Failed calls are not charged.","failureModes":["Input text exceeds 100 KiB limit — request rejected","Invalid or missing 'op' enum value — returns error","Options object contains unsupported or malformed parameters — returns error","Empty input string for operations that require content — may return empty result or error","Payment not received or insufficient — call not processed (not charged on failure)"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic, server-side text transformations without any network I/O — especially for hashing (SHA-256/BLAKE2b), HTML sanitization, slugification, Chinese script conversion (OpenCC), or whitespace normalization. It is ideal for agent pipelines that need reproducible, auditable text processing at low per-call cost ($0.001 USDC). Prefer it over LLM-based approaches when determinism is required and over general-purpose code execution when you want a lightweight, stateless micro-operation with no side effects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:35:24.012Z","isFirstParty":false,"canonicalSlug":"agenttexttools-by-lin-desk-f3be0108"}