get_table_info
Retrieve detailed database table structure information, including field definitions, types, and comments, using either low-code system schema queries or traditional database metadata methods.
Instructions
获取指定数据库表的结构信息,包括字段定义、类型、注释等。支持两种查询方式:1) 低代码系统schema查询(通过da_logic_entity和da_entity_attribute表);2) 传统数据库元数据查询。优先使用低代码系统方式获取更详细的字段信息。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
source | No | 数据源类型:database(直连数据库)、api(通过API)、auto(自动选择) | auto |
table_name | Yes | 要查询的表名 |
Input Schema (JSON Schema)
{
"properties": {
"source": {
"default": "auto",
"description": "数据源类型:database(直连数据库)、api(通过API)、auto(自动选择)",
"enum": [
"database",
"api",
"auto"
],
"type": "string"
},
"table_name": {
"description": "要查询的表名",
"type": "string"
}
},
"required": [
"table_name"
],
"type": "object"
}