preflight_command
Check command paths and executables safely without running the command. Resolves working directory, symlink targets, Git roots, and executable tokens to catch errors before execution.
Instructions
Return content-free path and executable diagnostics without running command.
This resolves the working directory, symlink target, detectable Git repository root, and first executable token. Shell expansion, aliases, pipelines, redirections, environment changes, and arbitrary shell logic cannot be verified here. The requested command is never executed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| command | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |