# diff

## 功能

文本差异对比，基于 LCS 算法，显示新增/删除/相同行。

## 工具定义

### tool: text_diff
**description:** 对比两段文本差异。
**parameters:**
  - a (string, required): 文本 A
  - b (string, required): 文本 B

**api endpoint:** `GET https://diff.shxai.space?a=text1&b=text2`

## 示例

```bash
curl "https://diff.shxai.space?a=text1&b=text2"
```

## 鉴权

无需 API Key，直接调用即可。

---
> Skill 版本: 1.0 | 平台: shxai.space | 更新: 2026-08
