register_file_write_tool
Records file write events by hashing content and updating or creating entries, enabling change tracking and unblocking dependent tools.
Instructions
Register a file write/modification. Auto-hashes content, updates existing or creates new.
Call this after editing or writing a file to document what changed and why. The commit-gate hook will block all other tools until you register the write.
Args: path: File path (e.g. 'src/auth.py') statement: What changed (e.g. 'Added input validation to getUser()') reason: Why the change was made (e.g. 'Fix: getUser() crashed on null input') tags: Tags for categorization start_line: Optional line range start end_line: Optional line range end title: Optional title (defaults to 'File: {filename}') details: Optional additional details project: Optional project root path. Auto-detected from git root if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| tags | Yes | ||
| title | No | ||
| reason | Yes | ||
| details | No | ||
| project | No | ||
| end_line | No | ||
| statement | Yes | ||
| start_line | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |