# agentshelf.syntexa.ch Lines Drop-Last

> agentshelf.syntexa.ch Lines Drop-Last 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-02).

Removes the last line from a block of text, returning all preceding lines intact

## Facts

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

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-syntexa-ch-lines-drop-last-06a52e0b -d '<json body>'
```

Example prompt: Take this multiline text and drop the last line: 'apple
banana
cherry
date' — give me back everything except the final line.

## When to prefer this

Use this endpoint when you need a deterministic, offline transformation to remove exactly the last line from a text block with no LLM involvement, no network calls, and a fixed $0.004 USDC cost. Prefer the free sandbox endpoint POST /v1/sandbox/lines-drop-last for testing before incurring charges.

## Known failure modes

- Empty input or single-line input may return an empty string or the original text unchanged
- Input exceeding 100,000 characters will be rejected
- Malformed JSON request body returns a 400 error
- Insufficient USDC payment returns a 402 Payment Required error

## How this service works

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

## Output

A string containing all lines of the input text except the last one, preserving original line endings and order of the remaining lines.

## 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-syntexa-ch-lines-drop-last-06a52e0b/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)
