yearning_table_fields
Retrieve table structure for a specified database and table, listing field type, nullability, key, default value, comment, and index information.
Instructions
查看表结构:字段列表(类型/可空/键/默认值/注释)与索引信息。
对应 API:GET /api/v2/fetch/fields
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_id": "<source_id>",
"database": "<database>",
"table": "<table>"
},
"name": "yearning_table_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | 表名 | |
| database | Yes | 库名 | |
| source_id | Yes | 数据源 ID | |
| response_format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |