inspect_file
Checks how a file parses before diffing, reporting format, encoding, top-level shape, and warnings such as duplicate keys or multi-document YAML to help you anticipate surprising diffs.
Instructions
Check how a file parses before diffing it: format, encoding, top-level shape, warnings.
Surfaces things that make diffs surprising: duplicate keys (JSON, YAML, .env), multi-document YAML, comments in JSON, an unexpected delimiter or encoding in CSV. For CSV it reports the columns, the detected delimiter and the row count (streamed, so large files are fine).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| format | No | auto | |
| encoding | No | auto | |
| strip_comments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||