# AgentShelf Lines Reverse

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

Reverses the order of lines in a given text string, with no network calls or LLM involvement.

## Facts

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

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-reverse-c782d85d -d '<json body>'
```

Example prompt: Can you reverse the order of lines in this text? 'line one
line two
line three
line four'

## When to prefer this

Use this endpoint when you need a deterministic, server-side line reversal with no LLM involvement, no external network calls, and a guaranteed exact output. Prefer the free unpaid POST /v1/sandbox/lines-reverse endpoint first if available; use this paid endpoint when the sandbox is unavailable or for production use. Ideal when you need a reliable, non-probabilistic text transformation.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Text exceeding 100,000 characters is rejected
- Payment of exactly $0.002 USDC required; incorrect payment amount causes a 402 error
- Malformed request body returns a 400 error

## How this service works

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

## Output

Returns the input text with all lines reversed in order (last line becomes first, first line becomes last), delivered as a plain text string with no additional metadata.

## 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-reverse-c782d85d/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)
