claude_health
Validates the Claude Code CLI environment before orchestration: verifies the binary is on PATH, captures version, and reports OAuth auth status. Confirms setup is ready or flags mismatches.
Instructions
Health check for the Claude Code CLI binary.
Verifies the claude binary is on PATH, captures its --version output,
and reports auth status (whether ~/.claude.json has an OAuth token).
Use this as the first call in any orchestration session to validate the
environment.
Optional fields: - expected_version (str): if set, returns ok=false on version mismatch
Returns: - claude_path, claude_version, ok, auth_status, notes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| req | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| notes | No | ||
| auth_status | No | ||
| claude_path | Yes | ||
| claude_version | Yes |