> ## 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

> Fresh bounded spreadsheet value reads, metadata reads, and Drive comment reads. Includes inputs, outputs, costs, and Deepline CLI examples for GTM automation.

## 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_request:{"method":"sheets.spreadsheets.get","spreadsheet_id":"{{spreadsheet_id}}"}' --json
```

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

## Input Schema

| Name                     | Type                                                                                                                              | Required | Default | Description |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- | ----------- |
| `payload.method`         | `"sheets.spreadsheets.get" \| "sheets.spreadsheets.values.get" \| "sheets.spreadsheets.values.batchGet" \| "drive.comments.list"` | Yes      |         |             |
| `payload.spreadsheet_id` | `string`                                                                                                                          | Yes      |         |             |
| `payload.params`         | `record`                                                                                                                          | No       |         |             |

### Allowed values

| Field            | Allowed values                                                                                                            |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------- |
| `payload.method` | `sheets.spreadsheets.get`, `sheets.spreadsheets.values.get`, `sheets.spreadsheets.values.batchGet`, `drive.comments.list` |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Make one policy-bounded Google Sheets or Drive comments request. Every request is freshly read from Google and restricted to the workspace Shared Drive.",
    "properties": {
      "method": {
        "type": "string",
        "enum": [
          "sheets.spreadsheets.get",
          "sheets.spreadsheets.values.get",
          "sheets.spreadsheets.values.batchGet",
          "drive.comments.list"
        ]
      },
      "spreadsheet_id": {
        "type": "string",
        "minLength": 1,
        "pattern": "\\S"
      },
      "params": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "required": [
      "method",
      "spreadsheet_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name                    | Type      | Required | Default | Description |
| ----------------------- | --------- | -------- | ------- | ----------- |
| `result.method`         | `string`  | Yes      |         |             |
| `result.spreadsheet_id` | `string`  | Yes      |         |             |
| `result.fresh`          | `boolean` | Yes      |         |             |
| `result.response`       | `unknown` | Yes      |         |             |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "method": {
        "type": "string"
      },
      "spreadsheet_id": {
        "type": "string"
      },
      "fresh": {
        "type": "boolean"
      },
      "response": {}
    },
    "required": [
      "method",
      "spreadsheet_id",
      "fresh",
      "response"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute google_workspace_request --payload '{
  "method": "sheets.spreadsheets.get",
  "spreadsheet_id": "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`.
