findDefinition
Locate the declaration of a symbol in ABAP source at a given line and column, returning the object and position where it is defined.
Instructions
Where the symbol under a cursor position is defined - the F3 of ADT. Takes the source URL with a line and column, and answers with the object and position of the declaration, so it needs the source read first to count the position. To go the other way, use usageReferences or impactOf.
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": {
"url": "<url>",
"source": "<source>",
"line": "<line>",
"startCol": "<startCol>",
"endCol": "<endCol>"
},
"name": "findDefinition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| line | Yes | ||
| endCol | Yes | ||
| source | Yes | ||
| startCol | Yes | ||
| mainProgram | No | ||
| implementation | No |