diff_text
Compare two pasted strings in JSON, YAML, TOML, CSV, .env, or INI to get semantic differences and verified patches; specify the format because no filename is available.
Instructions
Semantic diff of two pasted strings (same output and options as diff_files).
Use this for content that is not on disk. 'format' is required because it cannot be guessed from a name. Both strings must be in the same format. See diff_files for the output shape and for array_match, array_keys, ignore, abs_tol, rel_tol and strip_comments. For CSV text each row becomes an object, so array_keys can match rows by id; use csv_diff on files for large CSVs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| format | Yes | ||
| ignore | No | ||
| abs_tol | No | ||
| rel_tol | No | ||
| array_keys | No | ||
| array_match | No | auto | |
| max_changes | No | ||
| strip_comments | No | ||
| max_value_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||