estimate_bag_size
Estimate the size of a dataset bag before downloading by previewing row counts and asset file sizes across all tables, helping you decide whether to commit to the full download.
Instructions
Estimate the size of a dataset bag before downloading.
Runs the same FK path traversal as a dataset bag download, then queries the snapshot catalog for row counts and asset file sizes. Use this to preview what a download will contain and how large it will be before committing to the full download.
Args: dataset_rid: RID of the dataset to estimate. version: Semantic version to estimate (e.g., "1.0.0"). exclude_tables: Optional list of table names to exclude from FK path traversal during bag export.
Returns: JSON with: - tables: dict of table name -> {row_count, is_asset, asset_bytes} - total_rows: total row count across all tables - total_asset_bytes: total asset size in bytes - total_asset_size: human-readable size (e.g., "1.2 GB")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | ||
| dataset_rid | Yes | ||
| exclude_tables | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |