lsp_initialize
Initialize the Scheme language server connection by providing the project root directory, enabling import resolution and code analysis. Call before using any other LSP tool.
Instructions
Initialize the scheme-langserver connection.
Must be called before any other LSP tool. Provides the project root directory so the language server can resolve imports and analyze the codebase.
Args: root_dir: Project root directory. langserver_path: Optional path to a specific scheme-langserver executable. If provided, it overrides environment variables and project config. This is useful for switching between scheme-langserver builds at runtime, e.g. when debugging a local development build.
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": {
"root_dir": "<root_dir>"
},
"name": "lsp_initialize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root_dir | Yes | ||
| langserver_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||