diff_text
Compute a unified line-by-line diff between two text strings (LCS algorithm). Returns added/removed/unchanged line counts and formatted diff hunks with configurable context lines (0–20). Use to compare versions of prompts, configs, code snippets, or any text where you need to see exactly what changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Original (before) text | |
| b | Yes | Modified (after) text | |
| context | No | Context lines around each change (0–20, default: 3) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | ||
| added | No | ||
| removed | No | ||
| unchanged | No |