find_file
Locate files matching specific patterns in your codebase while automatically excluding gitignored items. Use wildcards to search directories and retrieve matching file lists in JSON format.
Instructions
Finds non-gitignored files matching the given file mask within the given relative path. Returns a JSON object with the list of matching 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": {
"file_mask": "<file_mask>",
"relative_path": "<relative_path>"
},
"name": "find_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_mask | Yes | The filename or file mask (using the wildcards * or ?) to search for. | |
| relative_path | Yes | The relative path to the directory to search in; pass "." to scan the project root. |