sqlite_get_schema
Retrieve the schema of a SQLite table, mapping field names to their data types, to enable accurate SQL query construction.
Instructions
获取 SQLite 表结构(字段名到字段类型的映射)。
核心工具。LLM 写 SQL 前必须看 Schema。
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": {
"db_path": "<db_path>",
"table_name": "<table_name>"
},
"name": "sqlite_get_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db_path | Yes | SQLite 数据库文件路径(支持相对路径和绝对路径) | |
| table_name | Yes | 表名 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||