讀取原始碼
read_sourceReads ABAP object source code by URI. Supports optional line range and returns line-numbered content, truncated with a marker if needed.
Instructions
讀取 ABAP 物件的原始碼。可傳入物件 URI(自動解析 main include)或完整 source URI。回傳內容含行號,超過上限時會截斷並標註。
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": {
"object_url": "<object_url>"
},
"name": "read_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_line | No | 選填:結束行(含) | |
| object_url | Yes | 物件 URI 或 source URI,例如 /sap/bc/adt/oo/classes/zcl_demo | |
| start_line | No | 選填:起始行(1-based) |