# AgentShelf Collapse-Space Text Normalizer

> AgentShelf Collapse-Space Text Normalizer is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Normalizes input text by collapsing all whitespace sequences into single spaces, with no network calls or LLM involvement.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/norm-collapse-space?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-collapse-space-text-normalizer-80700232
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0irE2Tip0U0e7KETWbrHK

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 agentshelf-collapse-space-text-normalizer-80700232 -d '<json body>'
```

Example prompt: Can you normalize this text by collapsing all the extra spaces and whitespace into single spaces: 'Hello   world,  this   is   a   test   string   with  lots  of   spaces.'?

## When to prefer this

Use this endpoint when you need a simple, deterministic, offline whitespace normalization with no LLM or network dependency, and you want a guaranteed fixed cost of $0.003 USDC per call. Prefer the free sandbox endpoint POST /v1/sandbox/norm-collapse-space when available to avoid charges.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Input exceeding 100,000 characters is rejected
- Payment not provided or insufficient USDC results in a 402 response
- Malformed JSON request body returns a 400 error

## How this service works

Call when an agent needs text normalized with collapse-space. No network and no LLM. Exact $0.003 USDC. Prefer unpaid POST /v1/sandbox/norm-collapse-space first.

## Output

Returns the input text with all runs of whitespace (spaces, tabs, newlines) collapsed to a single space character, producing a clean, normalized string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "Hello, World!"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-collapse-space-text-normalizer-80700232/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
