run_look
Executes a saved Look query and returns the results in JSON, CSV, or plain text. Supports dev mode, branch swapping, and user impersonation.
Instructions
Run the query associated with a saved Look and return its results. Looks are pre-built query configurations saved in Looker.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| look_id | Yes | ID of the saved Look | |
| result_format | No | Output format: 'json', 'csv', 'txt' | json |
| limit | No | Maximum rows to return | |
| dev_mode | No | Resolve the Look's model+explore 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 Look'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 |