# SignalDesk AI – Text Line Count

> SignalDesk AI – Text Line Count is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Counts the number of lines in a given text string and returns the line count as a number.

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/text/line-count?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signaldesk-ai-text-line-count-d23f272e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KrzL2PWe2oFYGuKdDwwv5

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 signaldesk-ai-text-line-count-d23f272e -d '<json body>'
```

Example prompt: Count the number of lines in this text for me: 'Line one here
Line two here
Line three here' — I need the exact line count.

## When to prefer this

Choose this endpoint when you need a fast, deterministic line count for a text string up to 4096 characters and are operating in a micropayment-enabled (x402) environment. It is a simple, bounded computation — ideal for agents that need to verify document structure, enforce line limits, or audit text content without standing up their own string-processing logic.

## Known failure modes

- Text exceeds 4096 character limit — request rejected
- Empty or missing 'text' field — may return 0 or an error
- Malformed JSON body — returns a parsing error
- Payment not provided or insufficient — 402 Payment Required response blocking execution

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

Returns a JSON object with a single integer field 'lines' representing the total number of lines found in the submitted text (e.g. {"lines": 2}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 4096,
   "description": "Text to process."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lines": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-text-line-count-d23f272e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
