{"uid":"cap_XoQVffk5cPS0RdQEqA96M","slug":"swift-bot-labs-toolbox-text-transform-43e08e9c","name":"Swift Bot Labs Toolbox – Text Transform","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.dev/v1/text/transform?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"op":{"enum":["slug","camel","pascal","snake","kebab","constant","title","sentence","upper","lower","strip-accents","collapse-whitespace","sort-lines","dedupe-lines","strip-html"],"type":"string"},"text":{"type":"string","maxLength":524288}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"text-transform","result":{"op":"slug","result":"hello-world-api-v2-and-more"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6oKwDCZ_yF6ShFm22cHHn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies one of 15 deterministic string transformations (slugify, camelCase, snake_case, sort lines, strip HTML, etc.) to a text input, returning the transformed result.","exampleAgentPrompt":"Convert this title to a URL-friendly slug: 'Hello World API v2 & More'","exampleUseCases":[{"title":"Auto-generate URL slugs from titles","prompt":"Take this blog post title — 'Introduction to Async/Await in JavaScript & Node.js' — and convert it to a slug I can use in a URL."},{"title":"Normalize identifiers to snake_case","prompt":"I have a list of column headers like 'FirstName', 'LastLogin', 'UserEmailAddress' — can you convert each one to snake_case so I can use them in my database schema?"},{"title":"Strip HTML from scraped content","prompt":"I just scraped some product descriptions but they're full of HTML tags. Can you strip out all the HTML and give me just the plain text?"}],"resultDescription":"Returns a JSON object with `ok: true`, the tool name (`text-transform`), and a `result` object containing the applied `op` and the `result` string with the transformation applied.","failureModes":["Invalid or missing `op` enum value returns an error","Text exceeding 524,288 characters is rejected","Missing `text` field causes a validation error","Payment failure (x402) blocks the call before processing"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, serverless text transformation — especially for string-case conversions, slug generation, whitespace cleanup, line deduplication/sorting, or HTML stripping — without needing an LLM or complex NLP pipeline. It is ideal for agents doing code generation, CMS content prep, or data normalization tasks where predictability and low cost ($0.003/call) matter more than inference.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:36.360Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-toolbox-text-transform-43e08e9c"}