find_sessions_by_file
Search past sessions by file path to locate which ones modified or mentioned the file. Helps review prior work before editing.
Instructions
Find sessions that modified or mentioned a specific file.
Searches patch records (files actually changed) and file mentions in text. Uses an indexed file_paths table for fast lookup (<50ms).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 10, max 20) | |
| directory | No | Optional project directory scope | |
| file_path | Yes | File path or basename to search for (e.g. 'webhook_queue.py') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||