Bytebase: run SQL query
bytebase_queryExecute read-only SQL queries through Bytebase's SQL Editor, returning JSON rows while enforcing access policies, data masking, and audit logging.
Instructions
Execute SQL through the Bytebase SQL Editor and return rows as JSON. Read-only: only SELECT/WITH/SHOW/DESCRIBE/EXPLAIN are accepted. Queries run under the configured Bytebase identity and are subject to its access policies, data masking and audit log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows (default 200). | |
| database | Yes | Database reference, e.g. "prod/aurora-prod/salla". | |
| statement | Yes | A single SQL statement. | |
| dataSource | No | Which data source to use. Defaults to the read-only replica when the instance has one. |