ds_list_datasources
List readable data sources by type and return their IDs for SQL task configuration in workflows and DAGs. Read-only; returns an empty list if none match.
Instructions
List the data sources of one type that the current user can see (read-only).
Pass the returned id as datasource_id of SQL tasks, e.g. in
ds_create_workflow or ds_create_dag_workflow.
Args: ds_type: Data source type in DolphinScheduler's upper-case form, e.g. HIVE (default), MYSQL, POSTGRESQL, SPARK, CLICKHOUSE.
Returns: [{"id": int, "name": str, "type": str}, ...]; empty if none match.
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": "ds_list_datasources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ds_type | No | HIVE |