codeql_definition
Find where a symbol is defined in CodeQL files by providing file URI, line, and character position.
Instructions
Navigates to the definition of a symbol.
Args: file_uri: URI of the CodeQL file line: 0-based line number character: 0-based character position
Returns: Dictionary with definition locations and metadata
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_uri": "<file_uri>",
"line": "<line>",
"character": "<character>"
},
"name": "codeql_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| file_uri | Yes | ||
| character | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||