save_query_result
Execute BigQuery SQL and save results to a local file in CSV or JSONL format. Supports optional project ID and header inclusion.
Instructions
Execute BigQuery SQL and save results to a local file.
Args:
sql: The SQL query to execute
output_path: Path where to save the results
format: Output format - 'csv' or 'jsonl' (defaults to 'csv')
project_id: Optional project ID to use for the query (defaults to first configured project)
include_header: Include header row in CSV output (ignored for JSONL, defaults to True)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| output_path | Yes | ||
| format | No | csv | |
| project_id | No | ||
| include_header | No |