query
Execute SQL queries on SQLite databases to retrieve data as formatted tables. Specify database path and SQL statement to run read-only queries.
Instructions
Execute a SQL query against a SQLite database. Returns results as a formatted table. Read-only by default.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | Yes | Path to the .db or .sqlite file | |
| sql | Yes | SQL query to execute | |
| readonly | No | If true, only SELECT/PRAGMA/EXPLAIN allowed |