# agentshelf.syntexa.ch Unified Diff Text

> agentshelf.syntexa.ch Unified Diff Text is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Computes a unified diff between two input strings and returns the diff output, with no network calls and a fixed cost of $0.002 USDC.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/diff-text?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-syntexa-ch-unified-diff-text-4d2cf033
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__7xtvaxVEtkgqZeiIYn4X

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-unified-diff-text-4d2cf033 -d '<json body>'
```

Example prompt: Can you give me a unified diff of these two strings — the original is 'Hello world\nfoo bar\n' and the updated version is 'Hello world\nbaz qux\n'?

## When to prefer this

Choose this endpoint when you need a deterministic, pure-computation unified diff between two text strings with no external network calls and a predictable fixed cost. It is ideal for code review automation, changelog generation, or patch creation inside an agent pipeline. Prefer the free sandbox endpoint POST /v1/sandbox/diff-text first if available; use this paid endpoint when the sandbox is unavailable or rate-limited.

## Known failure modes

- Input string 'a' or 'b' exceeds 100,000 character limit — request rejected
- Missing required fields 'a' or 'b' — validation error returned
- Payment of $0.002 USDC not provided or incorrect — 402 Payment Required
- Malformed JSON body — 400 Bad Request

## How this service works

Call when an agent needs a unified diff of two strings. No network. Input size is capped. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/diff-text first.

## Output

The endpoint returns a unified diff string representing the line-by-line differences between input string 'a' (original) and string 'b' (modified), in standard unified diff format including context lines, hunks, and +/- line markers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "string",
   "examples": [
    "one\n"
   ],
   "maxLength": 100000,
   "description": "Original text. Shown as the left side of the unified diff."
  },
  "b": {
   "type": "string",
   "examples": [
    "two\n"
   ],
   "maxLength": 100000,
   "description": "Revised text. Shown as the right side of the unified diff."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-syntexa-ch-unified-diff-text-4d2cf033/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)
