# SignalDesk AI Text Truncate

> SignalDesk AI Text Truncate 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).

Truncates a given text string to a specified maximum number of Unicode code points, optionally appending a custom suffix

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/text/truncate?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-truncate-08127f70
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e90mtMkD7GzaMqk7fiRPS

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-truncate-08127f70 -d '<json body>'
```

Example prompt: Truncate this product description to 150 characters and add '…' at the end if it gets cut: 'Our premium blend coffee is sourced from organic farms across Ethiopia, Colombia, and Guatemala, roasted fresh daily for maximum flavor.'

## When to prefer this

Choose this endpoint when you need a simple, reliable, Unicode-aware text truncation with optional suffix in a pay-per-call model without spinning up your own string-processing infrastructure. It is well-suited for agents that occasionally need to enforce display or storage length constraints without embedding custom logic.

## Known failure modes

- Input text exceeds the 4096 character input limit — request rejected
- Requested length exceeds the 4096 maximum — validation error
- Suffix longer than 20 characters — rejected
- Malformed JSON body — 400 error
- Payment not provided or insufficient — 402 Payment Required

## 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 'text' field containing the (possibly truncated) string and a 'truncated' boolean indicating whether any content was removed. If the input was already within the length limit, 'truncated' is false and 'text' equals the original input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 4096,
   "description": "Text to process."
  },
  "length": {
   "type": "integer",
   "maximum": 4096,
   "minimum": 0,
   "description": "Maximum code points."
  },
  "suffix": {
   "type": "string",
   "maxLength": 20,
   "description": "Suffix."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "Hello...",
  "truncated": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-text-truncate-08127f70/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)
