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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "bash_syntax_check"
}
}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 |