read_sql
Execute read-only SQL queries like SELECT, SHOW, or PRAGMA on a specified database connection. Returns results as a JSON array of rows.
Instructions
执行只读 SQL 查询(例如 SELECT/SHOW/PRAGMA)。 Returns: JSON array of rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_name | Yes | Connection name (matches config.yaml connections[].name) | |
| query | Yes | SQL to execute (read-only) |