# CoCo Lines Text Processor

> CoCo Lines Text Processor is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Performs text line operations (e.g. trim, count) on input text via a query-parameter-driven API

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/lines?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-lines-text-processor-9799b239
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Xkipp0GdFBDWSOs-9f0UX

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 coco-lines-text-processor-9799b239
```

Example prompt: Can you trim the lines in this text and tell me how many lines there are before and after: 'The cat sat on the mat. This is an English example.'?

## When to prefer this

Choose this endpoint when you need a simple, cheap ($0.001 USDC) text line operation — especially trimming or counting lines — and want a JSON response with both input and output line counts. Best for lightweight text cleanup or line-count verification tasks where a full NLP or document processing API would be overkill.

## Known failure modes

- Missing required 'op' query parameter returns an error or empty result
- Unsupported operation value may return an error or unexpected output
- Missing 'text' parameter may result in empty processing with zero line counts
- Malformed input text may cause unexpected count results

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

Returns a JSON object with the operation name (op), the processed text, the input line count (count_in), and the output line count (count_out) after applying the requested line operation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "op": {
       "type": "string"
      },
      "text": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "op"
     ],
     "properties": {
      "op": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "op": "trim",
  "text": "The cat sat on the mat. This is an English example.",
  "count_in": 1,
  "count_out": 1
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-lines-text-processor-9799b239/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
