search-files
Find files and directories matching a pattern in a target directory, with support for wildcards, recursive search, and configurable result limits.
Instructions
Search for files and directories matching a 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": {
"searchPath": "<searchPath>",
"pattern": "<pattern>"
},
"name": "search-files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| searchPath | Yes | Directory path to search in | |
| pattern | Yes | Search pattern (supports wildcards like *.txt, *config*) | |
| recursive | No | Search recursively in subdirectories | |
| limit | No | Maximum number of results to return |