mysql_list_tables
Lists all tables in a specified MySQL database, or returns available databases when no database is provided.
Instructions
列出数据库中的所有表。可传 database 参数指定库;环境未配置默认库且未传参时返回数据库列表。可用环境: default(默认: default)。结果行数上限: default ≤ 1000 行,超出会被截断并在返回中标记 truncated;请用 WHERE/LIMIT 收窄范围或先执行 COUNT(*) 取总数
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": "mysql_list_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | 可选。目标数据库名;未传时使用环境配置的默认库,无默认库时返回数据库列表 | |
| environment | No | 目标环境名。可用环境: default(默认: default)。未传时使用默认环境 |