canon_check_rules_installed
Detect whether the Canon Phase 0a rules block is installed in a project's agent instruction files; returns ready-to-paste install payloads when missing so the agent can request user consent before editing.
Instructions
Canon — detect whether the IVD + Canon Phase 0a rules block (<BEGIN-CANON v1.0> / <END-CANON v1.0>) is installed in the active project's agent instruction files (.cursorrules, .clinerules, CLAUDE.md, .github/instructions/canon.md, AGENTS.md, .windsurf/rules/canon.md, optional ~/CLAUDE.md). NEVER writes to disk — when blocks are missing, returns ready-to-paste install_payload entries the AGENT must offer to the user with EXPLICIT permission before editing files. Reference: ivd/canon_layer.md, ivd/recipes/canon-rules.yaml.
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": "canon_check_rules_installed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_root | No | Path to repo root (absolute or relative). Defaults to IVD framework root for testing. | |
| install_missing | No | Hint only. The tool never writes to disk regardless of this flag — the agent must obtain explicit user consent and perform the edits itself. |