zig_definition
Jump to the definition of a symbol in Zig code by specifying the file path, line, and character offset.
Instructions
Go to definition — find where a symbol is defined in a Zig codebase 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_definition"
}
}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 |