search_files
Search for specific regex patterns within files in a specified directory using a read-only glob filter. Ideal for locating text matches in file systems.
Instructions
Search for a regex pattern within files in a specified directory (read-only).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
file_pattern | No | Glob pattern to filter files (e.g., '*.ts'). Defaults to all files ('*'). | * |
path | No | Relative path of the directory to search in. | . |
regex | Yes | The regex pattern to search for. |
Input Schema (JSON Schema)
{
"properties": {
"file_pattern": {
"default": "*",
"description": "Glob pattern to filter files (e.g., '*.ts'). Defaults to all files ('*').",
"type": "string"
},
"path": {
"default": ".",
"description": "Relative path of the directory to search in.",
"type": "string"
},
"regex": {
"description": "The regex pattern to search for.",
"type": "string"
}
},
"required": [
"regex"
],
"type": "object"
}