add_workspace_folder
Add a directory to the LSP workspace to enable cross-repo references, definitions, and diagnostics. Supports multi-root workspaces for languages like Go, Rust, and TypeScript.
Instructions
Add a directory to the LSP workspace, enabling cross-repo references, definitions, and diagnostics. Useful when working across a library and its consumers — after adding the consumer repo, get_references on a library function returns call sites in both repos. Requires start_lsp to have been called first. Language servers that support multi-root workspaces (gopls, rust-analyzer, typescript-language-server) will re-index the new folder automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |