# AgentShelf Lines Trim

> AgentShelf Lines Trim is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-24).

Trims whitespace from each line of a text string with no network I/O, returning the cleaned lines for a flat $0.004 USDC fee.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/lines-trim?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-lines-trim-aa793fa3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EaEtrToP0ap7wvmKK-hCR

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-lines-trim-aa793fa3 -d '<json body>'
```

Example prompt: Can you trim the whitespace from the beginning and end of each line in this text block: '  hello world  \n   foo bar   \n  baz  '?

## When to prefer this

Use this endpoint when you need a reliable, stateless, server-side line-trim operation without implementing it locally, especially in agentic pipelines where consistent text normalization is required and a small per-call cost is acceptable. Prefer the free sandbox endpoint (/v1/sandbox/lines-trim) for development or testing.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Input exceeding 100,000 characters is rejected
- Payment not included or incorrect amount causes a 402 Payment Required response
- Malformed request body returns a 400 Bad Request

## How this service works

Call when an agent needs lines of text transformed with trim. No network. Exact $0.004 USDC. Prefer unpaid POST /v1/sandbox/lines-trim first.

## Output

The endpoint returns the input text with all leading and trailing whitespace stripped from each individual line, preserving line structure but removing surrounding spaces or tabs per line.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "b\na\n"
   ],
   "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-lines-trim-aa793fa3/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)
