bw_preview_datasource
Fetch a live preview of DataSource records directly from the source system. Returns sample rows as a formatted table with field names as headers to inspect underlying data.
Instructions
Fetch a live data preview / sample rows from a DataSource (RSDS) — reads the first N rows directly from the source system and returns them as a formatted table with field names as column headers. Use this when the user wants to see, sample, preview, or inspect the actual data behind a DataSource (e.g. "show me data from DS_X", "preview 50 rows", "what does DS_X look like"). For data from an aDSO, CompositeProvider, or BEx query, use bw_query_data instead.
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": {
"datasource_name": "<datasource_name>",
"source_system": "<source_system>"
},
"name": "bw_preview_datasource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | No | Number of records to fetch (default: 20). SAP returns at most this many rows. | |
| source_system | Yes | Logical source system name (e.g. "LSYS_NAME"). Case-insensitive. | |
| datasource_name | Yes | DataSource name (e.g. "DS_NAME"). Case-insensitive. |