GetPackageTree
Reads the full hierarchy of one or more ABAP packages, including subpackages and their objects to the last level, so you can inspect package structure and contents.
Instructions
[read-only] Reads the whole hierarchy of one or more ABAP packages (DEVC): each package with its subpackages and their objects, down to the last level. Runs on an ABAP session of its own. By default the run goes on after the call, and its result comes back under the run_handle the call gives; with background false the result comes back in the call.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "GetPackageTree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| debug | No | Include diagnostic metadata in response (counts, types, hierarchy info). Default: false | |
| detail | No | How much of the answer to return: "terse" (default) what a next call needs: the identifiers and a short description; "medium" every item the tool read, with its main properties; "full" the tool's whole answer; "raw" what SAP sent. | terse |
| max_depth | No | Maximum depth for recursive package traversal. Default: 5 | |
| background | No | Default true: the read runs in the background on an ABAP session of its own and the call answers at once with a run_handle; GetBackgroundRun answers its result once, and DiscardBackgroundRun cancels it while it runs. false: the call answers the result itself. | |
| package_name | No | Package name (give this or package_names) | |
| package_names | No | Several package names, read together (give this or package_name) | |
| include_subpackages | No | Include subpackages recursively in the tree. If false, subpackages are shown as first-level objects but not recursively expanded. Default: true | |
| include_descriptions | No | Include each object's description in the response. The package metadata and the walk's levels are then read as single requests, several at a time, rather than in ADT batch envelopes. Default: false |