# OpenTools Text Diff

> OpenTools Text Diff is a paid API for AI agents from chargers-borders-cedar-fig.trycloudflare.com, paid per call via x402, price unknown, status unknown (last checked 2026-09-15).

Computes a text diff between two text inputs, returning the differences between them

## Facts

- Endpoint: POST https://chargers-borders-cedar-fig.trycloudflare.com/tools/text-diff
- Price: price unknown
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/opentools-text-diff-588a0d35
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-PTUEe58MgNi5-ys2tnAR

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 opentools-text-diff-588a0d35 -d '<json body>'
```

Example prompt: Can you diff these two paragraphs and show me exactly what changed — here's the original: 'The quick brown fox jumps over the lazy dog.' and the new version: 'The quick red fox leaped over the sleepy dog.'

## When to prefer this

Use this endpoint when you need a lightweight, free text diff computation without setting up a local diff library. It is well-suited for agents that need to programmatically compare two strings or documents and surface changes, especially in workflows involving document editing, version tracking, or review automation.

## Known failure modes

- Missing required input body — returns 400 if text fields are absent
- Malformed JSON body — returns 400 or 422 validation error
- Extremely large text inputs may time out or return an error
- Empty strings provided for both texts — may return empty diff or error
- Server unavailable on Cloudflare tunnel — returns 502 or 503

## How this service works

opentools utility endpoint

## Output

Returns a structured diff result indicating lines or segments that were added, removed, or unchanged between the two input texts, typically in a standard diff format or structured JSON representation of changes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/opentools-text-diff-588a0d35/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chargers-borders-cedar-fig.trycloudflare.com](https://www.zero.xyz/host/chargers-borders-cedar-fig.trycloudflare.com/llms.txt)
