# AgentShelf Lines Drop Empty

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

Removes empty lines from a block of text, returning only non-empty lines

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/lines-drop-empty?utm_source=zero.xyz
- Price: $0.005/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-drop-empty-9cfb5df5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xDzu-078qH970SnrOSI3n

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-drop-empty-9cfb5df5 -d '<json body>'
```

Example prompt: Can you clean up this text by removing all the empty lines from it: 'Line one\n\nLine two\n\n\nLine three\n'?

## When to prefer this

Use this endpoint when you need a deterministic, offline (no network or LLM) transformation to strip empty lines from text. It is faster and cheaper than using a language model for the same task, and produces consistent results. Prefer the free sandbox endpoint /v1/sandbox/lines-drop-empty first if available; use this paid endpoint when the sandbox is unavailable or for production workloads requiring reliability.

## Known failure modes

- Input text is empty or missing — returns a validation error
- Input text exceeds 100,000 character limit — returns a payload-too-large error
- Malformed JSON body — returns a parse error
- Payment not included or insufficient — returns HTTP 402 requiring $0.005 USDC payment

## How this service works

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

## Output

Returns the input text with all empty (or whitespace-only) lines removed, preserving the order and content of non-empty lines. The output is a cleaned string containing only lines that have at least one character.

## 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-drop-empty-9cfb5df5/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)
