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

> Read values, metadata or comments from a Google Sheet in your workspace's shared drive. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Read values, metadata or comments from a Google Sheet in your workspace's shared drive.

> [!NOTE]
>
> Tool ID: `google_workspace_request`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'google_workspace_request',
  {
    "method": "sheets.spreadsheets.get",
    "spreadsheet_id": "spreadsheet_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute google_workspace_request --input '{
  "method": "sheets.spreadsheets.get",
  "spreadsheet_id": "spreadsheet_123"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "method": "example",
  "spreadsheet_id": "spreadsheet_123",
  "fresh": true,
  "response": {}
}
```

Use `deepline describe google_workspace_request --json` for the latest machine-readable contract.

## Input reference

Make one policy-bounded Google Sheets or Drive comments request. Every request is freshly read from Google and restricted to the workspace Shared Drive.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.method` | `"sheets.spreadsheets.get" \| "sheets.spreadsheets.values.get" \| "sheets.spreadsheets.values.batchGet" \| "drive.comments.list"` | Yes | — | Allowed: `sheets.spreadsheets.get`, `sheets.spreadsheets.values.get`, `sheets.spreadsheets.values.batchGet`, `drive.comments.list`. |
| `payload.spreadsheet_id` | `string` | Yes | — | Minimum length: 1. Pattern: `\S`. |
| `payload.params` | `record` | No | — | — |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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 reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "method": {
        "type": "string"
      },
      "spreadsheet_id": {
        "type": "string"
      },
      "fresh": {
        "type": "boolean"
      },
      "response": {}
    },
    "required": [
      "method",
      "spreadsheet_id",
      "fresh",
      "response"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

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

## Related documentation

* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.