open_file
Open a file from the project root to trigger LSP diagnostics, making it available for on-demand checks and navigation.
Instructions
Open a file in the LSP server. This triggers diagnostics and makes the file available for subsequent no-arg diagnostics calls.
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": {
"file": "<file>"
},
"name": "open_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative file path from project root |