# AgentTextTools by LIN Desk

> AgentTextTools by LIN Desk is a paid API for AI agents from lin-desk-x402.lindesk.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

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).

## Facts

- Endpoint: POST https://lin-desk-x402.lindesk.workers.dev/v1/texttools?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttexttools-by-lin-desk-f3be0108
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5ZYFKBjIbssGcvpmsqQpz

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 agenttexttools-by-lin-desk-f3be0108 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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)

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "op": "normalize",
  "meta": {
   "chars_in": 13,
   "chars_out": 11,
   "elapsed_ms": 1
  },
  "result": "Hello World"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttexttools-by-lin-desk-f3be0108/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lin-desk-x402.lindesk.workers.dev](https://www.zero.xyz/host/lin-desk-x402.lindesk.workers.dev/llms.txt)
