run_query
Execute a saved Looker query by its ID, preserving all baked-in settings like dynamic fields and table calcs. Useful for re-running queries from dashboard tiles or other Looker tooling.
Instructions
Run an existing saved Looker Query by ID and return its results. Unlike query, this does not re-spec the query body — any settings baked into the saved Query (e.g. dynamic_fields / table calcs / vis config) are preserved. Useful for re-running a query whose ID you already have: a dashboard tile's query.id, the id returned by query_url, or an id surfaced by other Looker tooling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query_id | Yes | ID of the saved Query | |
| result_format | No | Output format: 'json' (default), 'json_detail', 'csv', 'txt' | json |
| limit | No | Row limit override. Omit to use the limit baked into the saved Query. | |
| apply_formatting | No | Render values per LookML/Look formatting (currency symbols, date formats, etc.). Default false matches Looker's API default. | |
| apply_vis | No | Apply visualization-config-driven rendering to the result. Default false matches Looker's API default. | |
| server_table_calcs | No | Compute table calculations server-side so the response includes them. Required for tile-fidelity validation when the saved Query carries table calcs. Default false matches Looker's API default. | |
| cache | No | Allow Looker to serve cached results. Set false to force a fresh run. Default true matches Looker's API default. | |
| dev_mode | No | Resolve the Query against the dev workspace's LookML rather than production. Implied when ``branch`` is set. | |
| branch | No | Project branch to atomically swap to for this call (saved branch restored on exit). Requires project_id. | |
| project_id | No | LookML project ID owning the Query's model — required with ``branch`` | |
| act_as_user | No | Optional Looker user ID or email to impersonate for this call. Use to operate on another user's dev workspace (Looker dev mode is per-user-isolated) or to run as a dedicated CI service user. Requires sudo capability on the configured admin credentials. When omitted, the call uses the configured or gateway-provided identity. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |