search_files
Search file contents with ripgrep-compatible regex patterns to locate matches. Supports glob filtering, case sensitivity, context lines, and result limits for targeted code searches.
Instructions
Search file contents using ripgrep (rg).
Requires ripgrep to be installed on the system. Supports regex patterns, glob filtering, case sensitivity, context lines, and result limiting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes | Request model for search_files tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The directory that was searched. | |
| total | Yes | Total number of matches found. | |
| matches | Yes | List of matches found. | |
| pattern | Yes | The search pattern used. | |
| truncated | Yes | Whether results were truncated due to max_results. |