GetPackageContents
Reads objects from one or more ABAP packages (DEVC), including subpackage contents on request, to inspect package structure and contents.
Instructions
[read-only] Reads the objects of one or more ABAP packages (DEVC), with the objects of their subpackages when asked. 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": "GetPackageContents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | Name of the ABAP package (give this or package_names) | |
| package_names | No | Names of several ABAP packages, read together (give this or package_name) | |
| include_subpackages | No | Include contents of subpackages recursively (default: false) | |
| include_descriptions | No | Include each object's description in the response. The walk's levels are then read as single requests, several at a time, rather than in ADT batch envelopes (default: false) |