opencode_find_file
Locate files and directories by name using fuzzy matching. Specify a search query, optionally filter by file or directory type, and set a limit for results.
Instructions
Find files and directories by name (fuzzy match)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Limit results to 'file' or 'directory' | |
| limit | No | Max number of results (1-200) | |
| query | Yes | Search string for file/directory names | |
| directory | No | Absolute path to the project directory. When provided, the request targets that project. If omitted, the OpenCode server uses its own working directory. | |
| searchDirectory | No | Override the project root for the search |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |