Ask Genie
ask_genieQuery a Databricks Genie space in natural language to get Genie's generated answer, SQL, and result rows; poll using conversation and message IDs while pending.
Instructions
Ask a natural-language question in a Genie space and return Genie's answer.
Starts a new conversation (or a follow-up when conversation_id is given), waits up to wait_seconds, and returns: the model-generated text answer, the generated SQL with its description, the rows produced by running that SQL (capped), status and ids. If Genie is still working, returns status 'pending' with conversation_id/message_id - call again with those ids (and no question) to poll. The answer and SQL are MODEL-GENERATED, not authoritative data.
Safety classification: EXECUTION+READ_ONLY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_rows | No | Max result rows to return per query (capped by the server SQL row limit). | |
| question | No | Natural-language question. Omit when polling an existing message_id. | |
| space_id | Yes | Genie space id. | |
| message_id | No | Poll mode: with conversation_id, fetch status/result of a previous question. | |
| wait_seconds | No | How long to wait for Genie to finish (default 60s, capped by server max wait). | |
| conversation_id | No | Continue this conversation (follow-up question), or poll a message in it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| page | No | ||
| plan | No | ||
| tool | Yes | ||
| action | No | ||
| safety | No | ||
| status | No | success | |
| summary | Yes | ||
| warnings | No | ||
| next_steps | No | Suggested follow-up calls. | |
| request_id | No |