# AgentShelf Words Diff

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

Computes a word-level diff between two input strings and returns the differences, with no network dependencies.

## Facts

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

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-words-diff-ce845c3f -d '<json body>'
```

Example prompt: Can you show me exactly which words changed between these two strings: 'The quick brown fox jumps over the lazy dog' and 'The fast brown fox leaps over the sleepy dog'?

## When to prefer this

Choose this endpoint when you need a precise word-level diff (as opposed to line-level or character-level) between two strings, and want a deterministic, offline computation at a fixed low cost of $0.01 USDC. Prefer this over the free sandbox endpoint (/v1/sandbox/diff-words) only when the sandbox is unavailable or unsuitable. Use the lines diff or unified diff siblings if line-level or unified patch format output is needed instead.

## Known failure modes

- Input strings exceeding 100,000 characters may be rejected
- Missing 'a' or 'b' fields returns a validation error
- Payment of exactly $0.01 USDC required; incorrect payment amount causes rejection
- Malformed JSON body returns a 400 error

## How this service works

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

## Output

A word-level diff result showing which words were added, removed, or unchanged between the two input strings, computed locally with no 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-words-diff-ce845c3f/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)
