Find File
find_fileSearch for files matching a specific pattern while automatically excluding gitignored files. Use wildcards to locate files in any directory of your project.
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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |