guard_preflight
Verifies configured tool presence and versions, and whether the current directory is a Git worktree, to diagnose unexpected tool failures before blaming code.
Instructions
Check configured tool presence and versions, and whether this directory is a git worktree.
Use it when a tool fails in a surprising way, before blaming the code.
It takes no parameters. The tool list is preflight_tools from config
(default git, python3, pip, node, npm, rg, pytest). At most 20 entries are
probed; extras are counted as omitted. Each present tool is run as
<tool> --version with a 2 second cap, a 15 second overall deadline, and
at most 4 KiB of output. It returns PC preflight, git yes/no, present
and missing tools, any incomplete version probes, and a Nudge. Side
effects: creates .agent-guard/ and seeds config.json if needed, and
executes those version probes. It does not install tools and does not
append the journal or the evidence ledger.
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": "guard_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |