> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Workspace README: Inputs, Cost & CLI Example

> Exporting a completed Play dataset to a polished spreadsheet with a yellow notes column, or to a new tab in an existing spreadsheet.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=google_workspace_export_dataset:{"dataset":{},"destination":{},"operation_key":"{{operation_key}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                    | Type     | Required | Default | Description                                                     |
| ----------------------- | -------- | -------- | ------- | --------------------------------------------------------------- |
| `payload.dataset`       | `object` | Yes      |         |                                                                 |
| `payload.destination`   | `object` | Yes      |         |                                                                 |
| `payload.presentation`  | `object` | No       |         |                                                                 |
| `payload.operation_key` | `string` | Yes      |         | Stable caller-supplied idempotency key for this export attempt. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Export a completed Play Dataset Handle to a Google Sheet. The tool owns dataset resolution, workspace containment, tab creation, and conflict safety. presentation can retain the compatibility review preset or apply policy-bounded native Sheets formatting requests. New result tabs are inserted at the left and include the run ID. summary_tab refreshes a stable summary with the latest dataset metadata and source-column fill rates. Omit spreadsheet_id to create a spreadsheet, or supply it to add a new tab to the same spreadsheet.",
    "properties": {
      "dataset": {
        "type": "object",
        "properties": {
          "run_id": {
            "type": "string",
            "minLength": 1,
            "pattern": "\\S"
          },
          "path": {
            "type": "string",
            "minLength": 1,
            "pattern": "\\S"
          },
          "dataset_id": {
            "type": "string",
            "minLength": 1,
            "pattern": "\\S"
          }
        },
        "required": [
          "run_id"
        ],
        "additionalProperties": false
      },
      "destination": {
        "type": "object",
        "properties": {
          "spreadsheet_id": {
            "type": "string",
            "minLength": 1,
            "pattern": "\\S"
          },
          "spreadsheet_title": {
            "type": "string",
            "minLength": 1,
            "pattern": "\\S"
          },
          "tab_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "\\S"
          },
          "mode": {
            "type": "string",
            "const": "new_tab"
          }
        },
        "required": [
          "tab_name"
        ],
        "additionalProperties": false
      },
      "presentation": {
        "type": "object",
        "properties": {
          "preset": {
            "type": "string",
            "description": "Use \"review\" for the compatibility presentation defaults or \"none\" when the caller supplies presentation requests.",
            "enum": [
              "review",
              "none"
            ]
          },
          "include_notes_column": {
            "type": "boolean",
            "description": "Append an empty notes column. Defaults to true for the review preset and false for none."
          },
          "auto_fit_columns": {
            "type": "boolean"
          },
          "freeze_header": {
            "type": "boolean"
          },
          "add_filter": {
            "type": "boolean",
            "description": "Add a basic filter to the exported range. Defaults to false."
          },
          "wrap_header": {
            "type": "boolean"
          },
          "summary_tab": {
            "type": "boolean"
          },
          "summary_tab_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "\\S"
          },
          "requests": {
            "type": "array",
            "description": "Policy-bounded Google Sheets batchUpdate presentation requests, applied after built-in presentation and auto-fit. Supported operations: repeatCell for userEnteredFormat only, updateSheetProperties for frozen row/column counts, autoResizeDimensions, updateDimensionProperties for pixelSize/hiddenByUser, setBasicFilter, and clearBasicFilter. Sheet IDs must be $results_sheet_id or $summary_sheet_id. Ranges can use $result_row_count, $result_column_count, $notes_column_index, $summary_row_count, and $summary_column_count. Requests cannot write cell values, add/delete tabs, or change Drive permissions.",
            "maxItems": 50,
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          }
        },
        "additionalProperties": false
      },
      "operation_key": {
        "type": "string",
        "description": "Stable caller-supplied idempotency key for this export attempt.",
        "minLength": 8,
        "pattern": "\\S"
      }
    },
    "required": [
      "dataset",
      "destination",
      "operation_key"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name                         | Type      | Required | Default | Description |
| ---------------------------- | --------- | -------- | ------- | ----------- |
| `result.shared_drive_id`     | `string`  | Yes      |         |             |
| `result.shared_drive_name`   | `string`  | Yes      |         |             |
| `result.shared_drive_url`    | `string`  | Yes      |         |             |
| `result.folder_id`           | `string`  | Yes      |         |             |
| `result.folder_name`         | `string`  | Yes      |         |             |
| `result.folder_url`          | `string`  | Yes      |         |             |
| `result.spreadsheet_id`      | `string`  | Yes      |         |             |
| `result.spreadsheet_url`     | `string`  | Yes      |         |             |
| `result.tab_id`              | `integer` | Yes      |         |             |
| `result.tab_name`            | `string`  | Yes      |         |             |
| `result.row_count`           | `integer` | Yes      |         |             |
| `result.column_count`        | `integer` | Yes      |         |             |
| `result.created_spreadsheet` | `boolean` | Yes      |         |             |
| `result.operation_key`       | `string`  | Yes      |         |             |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "shared_drive_id": {
        "type": "string"
      },
      "shared_drive_name": {
        "type": "string"
      },
      "shared_drive_url": {
        "type": "string"
      },
      "folder_id": {
        "type": "string"
      },
      "folder_name": {
        "type": [
          "string",
          "null"
        ]
      },
      "folder_url": {
        "type": "string"
      },
      "spreadsheet_id": {
        "type": "string"
      },
      "spreadsheet_url": {
        "type": "string"
      },
      "tab_id": {
        "type": "integer"
      },
      "tab_name": {
        "type": "string"
      },
      "row_count": {
        "type": "integer"
      },
      "column_count": {
        "type": "integer"
      },
      "created_spreadsheet": {
        "type": "boolean"
      },
      "operation_key": {
        "type": "string"
      }
    },
    "required": [
      "shared_drive_id",
      "shared_drive_name",
      "shared_drive_url",
      "folder_id",
      "folder_name",
      "folder_url",
      "spreadsheet_id",
      "spreadsheet_url",
      "tab_id",
      "tab_name",
      "row_count",
      "column_count",
      "created_spreadsheet",
      "operation_key"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute google_workspace_export_dataset --payload '{
  "dataset": {},
  "destination": {},
  "operation_key": "string"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.
* Billing mode: `no_bill`.
