find_files
Locate files matching a pattern in a directory. Provide directory and pattern to get matching paths, with options for recursive search and max results.
Instructions
Search for files matching a pattern in a directory.
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": "find_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | File pattern to search for (e.g., *.js, test*.ts) | |
| directory | Yes | Directory to search in. Supports all drives. Example: D:\Projects | |
| recursive | No | Search recursively (default: true) | |
| max_results | No | Maximum number of results to return (default: 100) |