Completion Info
completionInfoGet autocomplete suggestions for a specific code location, showing available symbols, methods, and properties with their details.
Instructions
Get autocomplete suggestions at a position. Returns all possible completions with their kinds, sort text, and insert text. Useful for understanding what symbols, methods, or properties are available at a specific location in code.
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>",
"line": "<line>",
"offset": "<offset>"
},
"name": "completionInfo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File path (absolute or relative to cwd) | |
| line | Yes | 1-based line number | |
| offset | Yes | 1-based column offset | |
| prefix | No | Optional prefix to filter completions | |
| triggerCharacter | No | Character that triggered completion (e.g., '.', '"', "'", '`', '/', '@', '<', '#', ' ') |