guard_content
Check proposed file writes against Umbra's guard engine before writing. Returns allow/warn/block verdict with evidence and path violations.
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 |