summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/content/docs/tools.mdx
diff options
context:
space:
mode:
authoropencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>2025-12-23 22:37:49 -0600
committerGitHub <[email protected]>2025-12-23 22:37:49 -0600
commit6097d6af862002a559cdc0c8ffa5e69f5f746406 (patch)
treee2b5eb9cac8c6c453292ab95be8eb21ce551e7dd /packages/web/src/content/docs/tools.mdx
parent09d2febe278ffe49ca6c22b9eca96cc99a6f6f9a (diff)
downloadopencode-6097d6af862002a559cdc0c8ffa5e69f5f746406.tar.gz
opencode-6097d6af862002a559cdc0c8ffa5e69f5f746406.zip
docs: experimental LSP tool (#5943)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: Aiden Cline <[email protected]> Co-authored-by: Aiden Cline <[email protected]>
Diffstat (limited to 'packages/web/src/content/docs/tools.mdx')
-rw-r--r--packages/web/src/content/docs/tools.mdx23
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/tools.mdx b/packages/web/src/content/docs/tools.mdx
index e2f341ead..f1f845143 100644
--- a/packages/web/src/content/docs/tools.mdx
+++ b/packages/web/src/content/docs/tools.mdx
@@ -213,6 +213,29 @@ This tool lists directory contents. It accepts glob patterns to filter results.
---
+### lsp (experimental)
+
+Interact with your configured LSP servers to get code intelligence features like definitions, references, hover info, and call hierarchy.
+
+:::note
+This tool is only available when `OPENCODE_EXPERIMENTAL_LSP_TOOL=true` (or `OPENCODE_EXPERIMENTAL=true`).
+:::
+
+```json title="opencode.json" {4}
+{
+ "$schema": "https://opencode.ai/config.json",
+ "tools": {
+ "lsp": true
+ }
+}
+```
+
+Supported operations include `goToDefinition`, `findReferences`, `hover`, `documentSymbol`, `workspaceSymbol`, `goToImplementation`, `prepareCallHierarchy`, `incomingCalls`, and `outgoingCalls`.
+
+To configure which LSP servers are available for your project, see [LSP Servers](/docs/lsp).
+
+---
+
### patch
Apply patches to files.