GetTable
Reads an ABAP database table’s definition, fields, source code, or ADT metadata in a single request, supporting active or inactive versions and batch-mode recording.
Instructions
[read-only] Reads the ABAP database table named by table_name in one request: its definition with its fields, as source code (part "source", the default; active or inactive version) or its ADT metadata document (part "metadata": package, responsible, description). Returns the part read. Recordable: in batch mode a call is recorded under the next number and answers with empty content; its answer is read by number after the batch ends.
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": {
"table_name": "<table_name>"
},
"name": "GetTable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | The document to read: "source" (default) the source code, "metadata" the ADT metadata document (package, responsible, description, ...). | source |
| version | No | Version of the source: "active" (default) for the deployed version, "inactive" for the modified version awaiting activation. | active |
| table_name | Yes | Table name. |