# Kontrola rozdílů v textu

> Porovnejte dvě verze textu a zjistěte, které řádky byly přidány, odstraněny nebo zůstaly beze změny. Volitelně lze ignorovat mezery. Zdarma, nic se neukládá.

Free tool by Orkosi. Page: https://orkosi.com/tools/text-diff?lang=cs

Vložte starou a novou verzi smlouvy, konfiguračního souboru nebo odstavce. Odstraněné řádky začínají znaménkem minus, nové znaménkem plus.

1. Vložte původní text nahoru.
2. Vložte změněný text pod něj.
3. Stiskněte Porovnat a projděte si označené řádky.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `original` | text | yes | Původní text. |
| `changed` | text | yes | Změněný text. |
| `ignore_whitespace` | true \| false | no | Ignorovat mezery. Default: false. |

## Example

Input:

```json
{
  "original": "Plan: Starter\nPrice: 19 per month\nSeats: 3\nSupport: email",
  "changed": "Plan: Starter\nPrice: 24 per month\nSeats: 3\nSupport: email and chat\nTrial: 14 days"
}
```

Result:

```json
{
  "identical": false,
  "added": 3,
  "removed": 2,
  "unchanged": 2,
  "diff": "  Plan: Starter\n- Price: 19 per month\n+ Price: 24 per month\n  Seats: 3\n- Support: email\n+ Support: email and chat\n+ Trial: 14 days"
}
```

## Run it

It needs a free Orkosi account, nothing else. No credits are used.

- **A person**: open the page, enter an e-mail once, use the tool.
- **Claude or ChatGPT**: add the Orkosi connector `https://orkosi.com/api/v1/public/mcp` and sign in, or create the free account on the sign-in page. Then call `orkosi_run_free_tool` with `{ "tool": "text-diff", "input": { … } }`.
- **Any agent or program that can make an HTTP request**:

  1. Once, create the account: `POST https://orkosi.com/api/v1/public/signup` with `{ "name": "…", "email": "…", "terms_accepted": true }` and no key. Ask the person for the e-mail and their agreement to the terms first. The answer carries `data.api_key`, shown once.
  2. Run the tool:

```bash
curl -X POST https://orkosi.com/api/v1/public/tools/text-diff/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"original":"Plan: Starter\nPrice: 19 per month\nSeats: 3\nSupport: email","changed":"Plan: Starter\nPrice: 24 per month\nSeats: 3\nSupport: email and chat\nTrial: 14 days"}}'
```

The answer is `{ "data": { "tool": "…", "result": { … } } }`. A call without a key is answered 401 with the signup steps as data.

## Questions

**Jak mám výsledek číst?**

Řádek začínající znakem + existuje pouze ve změněném textu, řádek začínající znakem - pouze v původním. Neoznačené řádky jsou v obou stejné.

**Lze ignorovat rozdíly v mezerách?**

Ano. Zapněte Ignorovat mezery a řádky, které se liší pouze v mezerách, tabulátorech nebo odsazení, se budou považovat za shodné.

**Existuje omezení velikosti?**

1 500 řádků na text. To stačí i na dlouhé dokumenty, větší text rozdělte.

All free tools: https://orkosi.com/tools.md
