# AgentShelf Lines Take-20 Text Transformer

> AgentShelf Lines Take-20 Text Transformer 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-11).

Returns the first 20 lines of a submitted block of text, no network calls required

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/lines-take-20?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-lines-take-20-text-transformer-fb4c6302
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oWRYh4LF4pVjwtC_X0GMo

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-take-20-text-transformer-fb4c6302 -d '<json body>'
```

Example prompt: Take the first 20 lines from this text and give them back to me: [paste multi-line text here].

## When to prefer this

Use this endpoint when you need a simple, deterministic take-20 (head) operation on a block of text and want a local, network-free transformation with no external dependencies. Prefer the free sandbox endpoint /v1/sandbox/lines-take-20 first; use this paid endpoint when the sandbox is unavailable or rate-limited.

## Known failure modes

- Empty or missing text field returns a validation error
- Text exceeding 100,000 characters is rejected
- Malformed JSON body results in a 400 error
- Payment failure or insufficient USDC balance returns a 402 error

## How this service works

Call when an agent needs lines of text transformed with take-20. No network. Send JSON {"text":"b\na\n"}. Exact $0.003 USDC on Base. Try unpaid POST /v1/sandbox/lines-take-20 first.

## Output

The endpoint returns the first 20 lines of the submitted text, with everything after line 20 discarded. If the text has fewer than 20 lines, all lines are returned unchanged.

## 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-take-20-text-transformer-fb4c6302/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)
