lsp_completion
Retrieve code completion candidates at a specific position without applying any edits. Read-only method for previewing suggestions.
Instructions
Return constrained completion candidates at a position without applying them. Maps to textDocument/completion. Read-only — never applies insertText or additionalTextEdits.
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": {
"filePath": "<filePath>",
"position": "<position>"
},
"name": "lsp_completion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute or workspace-relative path to the file. | |
| position | Yes | Line/character position (zero-based) for completion. | |
| maxResults | No | Maximum number of completion items. | |
| includeInsertText | No | Include insert text in completion items. | |
| includeDocumentation | No | Include documentation in completion items. |