opencode_find_symbol
Locate functions, classes, and variables across projects by symbol name. Resolves symbol lookup needs in codebases via workspace search.
Instructions
Find workspace symbols by name (functions, classes, variables, etc.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Symbol name to search for | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |