search_files
Find files in a directory using glob patterns. Provide a base directory and pattern to identify matching files.
Instructions
Search for files within a directory matching a glob 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": {
"directory": "<directory>",
"pattern": "<pattern>"
},
"name": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Glob pattern to match files (e.g. '**/*.ts', '*.txt') | |
| directory | Yes | Base directory to search within |