Text diff (unified + structured) (paid $0.001)
diffCompare two texts and generate unified patch, structured op-list, and add/remove/hunk statistics. Supports line, word, or character modes with configurable context.
Instructions
PAID $0.001. Diff two texts: a unified patch, a structured op-list (add/remove/equal), and add/remove/hunk stats. Args: a, b, mode (lines|words|chars, default lines), context (default 3), label_a, label_b. Without payment returns the x402 challenge; pass x_payment to settle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Original text. | |
| b | Yes | Changed text. | |
| mode | No | lines (default) | words | chars. | |
| context | No | Unified-diff context lines (default 3). | |
| label_a | No | ||
| label_b | No | ||
| x_payment | No | x402 payment payload (base64) for this PAID tool. If supplied it is forwarded as the X-PAYMENT header to settle the $0.001 call and return the real result instead of a 402 challenge. Omit to get the price challenge first. |