doris_list_tables
List tables and views in a Doris database with pagination, returning names, types, and total counts. Filter by name pattern and paging to browse schemas quickly.
Instructions
列出某个库下的表,分页返回,并区分表与视图。
internal:走 information_schema.tables(1.2 的 SHOW TABLES 不支持 LIMIT),
WHERE TABLE_SCHEMA + 可选 LIKE 在服务端过滤;其他 catalog 用 SHOW TABLES FROM,
取回后本地切页。
返回:{ok, total, count, offset, limit, items[{name, type}], has_more, next_offset, source}
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": {
"database": "<database>"
},
"name": "doris_list_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 本页返回条数 | |
| offset | No | 跳过条数,用于翻页 | |
| catalog | No | 可选,catalog 名;默认 internal | |
| database | Yes | 数据库名 | |
| name_like | No | 可选,表名 LIKE 模式,如 ods_% |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |