opencode_find_file
Search a directory tree to find files or directories by name, with optional type and result limit. Reports unavailable on OpenCode 2.x servers missing /api/fs/find.
Instructions
Find files/directories by name. NOTE: 2.x server has no /api/fs/find route, so this reports unavailable.
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": {
"query": "<query>"
},
"name": "opencode_find_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| limit | No | ||
| query | Yes | ||
| directory | No | ||
| searchDirectory | No |