zig_completions
Provides Zig code completion suggestions at a given file position. Uses ZLS to return relevant completions for improving coding speed.
Instructions
Get completion suggestions at a specific position in a Zig file via ZLS
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_path": "<file_path>",
"line": "<line>",
"character": "<character>"
},
"name": "zig_completions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the .zig file | |
| line | Yes | Zero-based line number | |
| character | Yes | Zero-based character offset | |
| limit | No | Max number of completions to return (default: 20) |