Bash syntax check (structured)
bash_syntax_checkChecks shell scripts for syntax errors with bash -n without executing them, returning structured diagnostics with file, line, and message so you can validate untrusted scripts safely.
Instructions
Check shell scripts for syntax errors with bash -n and return structured diagnostics (file, line, message). Parses without executing, so it is safe on untrusted scripts. Reports valid:true when no errors are found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Required. Shell script path(s) to check; a string or array | |
| maxItems | No | Item cap; overrides detailLevel | |
| detailLevel | No | Item preset: summary 20, normal 100, full (default; also skips the response budget) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No | ||
| valid | Yes | ||
| errors | Yes | ||
| retained | No | ||
| truncated | No | ||
| errorCount | Yes |