sqlite_query
Run read-only SQL queries against a SQLite database with bound parameters and row limits to retrieve targeted data.
Instructions
以只读方式执行 SQL 查询。
Args: database: 数据库文件名或沙箱内的路径。 sql: 单条 SQL 查询语句(SELECT / WITH / PRAGMA 等)。 params: 绑定参数列表,使用 ? 占位符。 max_rows: 最多返回行数;0 表示使用配置上限。
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": {
"database": "<database>",
"sql": "<sql>"
},
"name": "sqlite_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| params | No | ||
| database | Yes | ||
| max_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |