guard_content
Checks proposed file writes against the Umbra guard engine before they happen, returning an allow/warn/block verdict with file:line evidence to block leaked keys, insecure JWTs, and git-hook plants.
Instructions
Check a proposed file write against the Umbra guard engine BEFORE writing. Returns the guard verdict as JSON: decision (allow/warn/block), findings with file:line evidence, and pathViolation when a protected path (e.g. .git/hooks) is targeted. On block, do not write — fix the content and re-check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | (required) Full proposed content — the new file content, or the replacement string for an edit | |
| file_path | No | (required) Path of the file about to be written |