search_by_file_path
Search session history for file paths or patterns to find past work on specific files or directories.
Instructions
Find sessions that referenced a specific file or path pattern.
Searches through session history for mentions of file paths, useful for finding past work on specific files or directories.
Args: file_pattern: File path or pattern to search for (e.g., "main.py", "src/") max_results: Maximum number of results to return (default: 20)
Returns: List of sessions and entries that referenced the file pattern
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_pattern": "<file_pattern>"
},
"name": "search_by_file_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_results | No | ||
| file_pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |