sqlite_query
Execute read-only SQLite queries (SELECT, WITH, PRAGMA) on a database file for data inspection; the connection rejects writes and supports positional parameters.
Instructions
对 SQLite 数据库执行只读查询(SELECT / WITH / PRAGMA)。基于 Node 内置 node:sqlite,以只读模式打开,拒绝任何写操作。
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": {
"dbPath": "<dbPath>",
"sql": "<sql>"
},
"name": "sqlite_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | 只读 SQL 语句(? 占位符可用 params 传参) | |
| dbPath | Yes | SQLite 数据库文件路径 | |
| params | No | 位置参数,按 ? 顺序传入 |