register_file_read_tool
Registers a file read by hashing its content and storing key facts, updating existing entries or creating new ones to prevent re-reading in future sessions.
Instructions
Register facts learned from reading a file. Auto-hashes content, updates existing or creates new.
Call this after reading a file to store what you learned. Prevents re-reading the same file in future sessions.
Args: path: File path (e.g. 'src/auth.py') statement: What you learned (e.g. 'getUser() returns User | null, takes user_id: int') subject: What the fact is about (e.g. 'getUser()') kind: What kind of code fact (api/function/module/type/config/schema) tags: Tags for categorization start_line: Optional line range start (auto-detected if omitted) end_line: Optional line range end (auto-detected if omitted) 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 |
|---|---|---|---|
| kind | Yes | ||
| path | Yes | ||
| tags | Yes | ||
| title | No | ||
| details | No | ||
| project | No | ||
| subject | Yes | ||
| end_line | No | ||
| statement | Yes | ||
| start_line | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |