# Swift Bot Labs Toolbox – Text Transform

> Swift Bot Labs Toolbox – Text Transform is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Applies one of 15 deterministic string transformations (slugify, camelCase, snake_case, sort lines, strip HTML, etc.) to a text input, returning the transformed result.

## Facts

- Endpoint: POST https://x402-toolbox.swiftbotlab.workers.dev/v1/text/transform?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-toolbox-text-transform-43e08e9c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XoQVffk5cPS0RdQEqA96M

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability swift-bot-labs-toolbox-text-transform-43e08e9c -d '<json body>'
```

Example prompt: Convert this title to a URL-friendly slug: 'Hello World API v2 & More'

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "text-transform",
  "result": {
   "op": "slug",
   "result": "hello-world-api-v2-and-more"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-toolbox-text-transform-43e08e9c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
