run_cell
Execute a SQL notebook cell in QuestDB, running statements sequentially and stopping on error. Returns success, query count, and per-statement results. Handles DDL/DML with write permission and consent.
Instructions
Execute a SQL cell. Each ;-separated statement runs sequentially; if one fails, the remaining statements are NOT attempted. Returns { success, queryCount, results: string[] }, where each results entry is "success", "cancelled", or "ERROR: <message>", in source order. You do NOT see columns, rows, or values — call run_query if you need data. success is true only when every statement reached "success". This is the ONLY path that executes agent-initiated DDL/DML in a cell (apply_notebook_state and add_cell never auto-run writes) — it requires the 'write' permission and the user's consent. A markdown cell is never executed: the response is { ran: false, skipped: true, note: <reason> }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell_id | Yes | ||
| buffer_id | Yes |