Skip to main content
query_tables answers one natural-language question over uploaded workbooks. run_sql is the fast lane when you already have a SELECT. run_sql is Python-only in the SDK; TypeScript callers POST /v1/workspaces/{id}/tools/run-sql.
Workbooks must be ingested first so parquet tables exist. The response keeps the full result in scratch storage and returns the answer, citations, unavailable sources, and a bounded preview. run_sql is read-only. The full result is retained as parquet (result_citation.result_file.download_url); its res_… handle is a registered table on the next call. Use qa-file for PDFs and other documents, not spreadsheets.