opencode_file_search
Search project files for text patterns using regex, optionally limited to a specific directory. Use it to locate code or content by pattern.
Instructions
Search for text pattern in project files. Supports regex patterns.
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": {
"pattern": "<pattern>"
},
"name": "opencode_file_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Search pattern (regex supported) | |
| directory | No | Limit to directory |