# NEXUS Agent Utilities – Clean Lines

> NEXUS Agent Utilities – Clean Lines is a paid API for AI agents from x402.nexusword.it, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-30).

Splits a text string into its individual non-empty lines, returning a deduplicated or cleaned line array with a count

## Facts

- Endpoint: POST https://x402.nexusword.it/v1/clean-lines?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nexus-agent-utilities-clean-lines-546d9e40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xqbFvUMqNHwE2VcH55PIR

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 nexus-agent-utilities-clean-lines-546d9e40 -d '<json body>'
```

Example prompt: Take this block of text and split it into clean individual lines, removing any blank or whitespace-only entries, then tell me how many lines there are: "hello\n\nworld\nfoo\n"

## When to prefer this

Choose this endpoint when you need a deterministic, x402-paid microservice to reliably split and clean a multiline text string into an array of non-empty lines with a count — ideal for agent pipelines that require reproducible text normalization without spinning up custom parsing logic.

## Known failure modes

- Missing or empty 'text' field returns an error or empty result
- Payment not attached or insufficient USDC results in 402 Payment Required response
- Extremely large text payloads may be rejected or time out
- Malformed JSON body returns a 400 Bad Request

## How this service works

x402-paid deterministic utilities for autonomous agents

## Output

Returns a JSON object containing 'count' (integer number of cleaned lines) and 'lines' (array of non-empty string lines extracted from the input text)

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "lines": [
   "a",
   "b"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nexus-agent-utilities-clean-lines-546d9e40/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.nexusword.it](https://www.zero.xyz/host/x402.nexusword.it/llms.txt)
