Search Files
fc_search_filesSearches a directory for files matching name patterns with * and ? wildcards, returning limited results so you can locate files by type or prefix.
Instructions
Searches files by name/pattern in a directory.
Args:
directory (string): Start directory for the search
pattern (string): Search pattern (supports * and ? wildcards)
max_results (number, optional): Maximum results (default: 50)
Examples:
pattern: "*.txt" - All text files
pattern: "test*" - Files starting with "test"
pattern: "*.py" - All Python files
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": "fc_search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Search pattern with wildcards | |
| directory | Yes | Start directory | |
| max_results | No | Max results |