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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "find_sessions_by_file"
}
}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 | |||