Preview pipeline source data
preview_custom_pipeline_sourcePost Source Preview
When to use: 소스 하나(데이터 레이크·데이터 마트 테이블, 다른 커스텀 에셋, Trino 쿼리)를 파이프라인에 추가하기 전에 실제로 어떤 행이 나오는지 미리 볼 때 — 구글 시트 소스는 미리보기를 지원하지 않으니 list_custom_pipeline_sheet_columns 로 컬럼을 본다.
Limitations: 저장하지 않는다. 최대 200행(limit), offset 으로 넘긴다. source_config 형식은 source_type 마다 다르다(? 는 생략 가능): DATA_LAKE 는 {table_name, schema?, catalog?}(list_custom_pipeline_available_sources 의 DATA_LAKE 항목이면 schema_name·catalog 를 schema·catalog 로 그대로 넘긴다 — schema 를 빼면 내 데이터 레이크 스키마의 같은 이름 테이블을 가리킨다), DATA_MART 는 {table_name}, PIPELINE 은 {pipeline_id}(다른 커스텀 에셋은 get_custom_asset 의 pipelines[].id 를 넘긴다), QUERY 는 {query}(Trino SELECT 문 — 내 데이터 밖의 테이블을 읽으면 422). GOOGLE_SHEETS·FILE 소스는 미리보기를 지원하지 않는다(시트 컬럼은 list_custom_pipeline_sheet_columns 로 본다).
Examples:
Q: 주문 데이터를 소스로 쓰면 어떤 값이 나오는지 보여줘 params: {'body': {'source_type': 'DATA_LAKE', 'source_config': {'table_name': 'commerce_order'}, 'limit': 20}}
Output shape: object: {columns[], rows[], row_count, generated_sql}
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": {
"source_type": "<source_type>",
"source_config": "<source_config>"
},
"name": "preview_custom_pipeline_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| filters | No | ||
| project-id | No | ||
| source_type | Yes | ||
| source_config | Yes | ||
| select_columns | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||