search_files
Search for files matching a name pattern using glob or regex. Narrow results by directory, recursion, and file type.
Instructions
Search for files by name 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": {
"pattern": "<pattern>"
},
"name": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | File name pattern (supports glob and regex) | |
| directory | No | Directory to search in | . |
| recursive | No | Search recursively | |
| includeHidden | No | Include hidden files | |
| type | No | Type of items to search for | both |
| maxResults | No | Maximum number of results |