# agentshelf.syntexa.ch Lines Diff

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

Computes a line-by-line diff of two input strings and returns the differences, running entirely locally without network dependencies.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/diff-lines?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-syntexa-ch-lines-diff-43ca0083
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3tbOnLA7BlExiqfXSuJlH

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-lines-diff-43ca0083 -d '<json body>'
```

Example prompt: Can you give me a line-by-line diff of these two texts? Before: 'Hello world
Foo bar
Baz' and after: 'Hello world
Foo baz
Baz qux' — just show me what lines changed.

## When to prefer this

Use this endpoint when you need a deterministic, line-level diff of two strings and require no external network access during computation. It is appropriate for comparing code snippets, config files, or text documents where exact line changes matter. Prefer the free sandbox endpoint POST /v1/sandbox/diff-lines first; only fall back to this paid endpoint when the sandbox is unavailable or you need production reliability. Avoid if you need character-level or word-level diffs rather than line-level.

## Known failure modes

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

## How this service works

Call when an agent needs a lines diff of two strings. No network. Exact $0.009 USDC. Prefer unpaid POST /v1/sandbox/diff-lines first.

## Output

A line-by-line diff output showing which lines were added, removed, or unchanged between string A and string B, computed without any external network calls.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "string",
   "examples": [
    "one two"
   ],
   "maxLength": 100000,
   "description": "Left-hand text."
  },
  "b": {
   "type": "string",
   "examples": [
    "one three"
   ],
   "maxLength": 100000,
   "description": "Right-hand text."
  }
 }
}
```

## More

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