# Document Get

Google Drive

Read the structure and content of a Google Docs document in a connected Drive.

## Use this tool with your AI agent

1. Copy the prompt
2. Paste it into your agent
3. Tell it what you need

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use Document Get (tool ID: google-drive.document-get). Ask me for the details you need, then show me the result. Help me connect the required app account if needed.

**Already connected:** Your agent can use that connection.

**New user:** Your agent will guide you through setup, sign-in and authorisation.

This tool also needs you to connect your app account.

Connect your first agent to receive $1 trial credit.

**Job:** [Create and edit Google Docs](https://scrollport.com/tools/google-docs-mcp)

**Current price:** $0.0025/request

**Availability:** Requires connected account

## Tool details

**About this tool**

Retrieves one Google Docs document, including its paragraphs, text runs, tables, styles and revision metadata. Always one upstream request at $0.0025.

**Inputs and outputs**

### Input

`path` object · required

Identifier path for the authorised connected-app record.

`query` object · optional

Search terms used to find relevant records.

### Output

`body` object

Bounded request body sent to the connected application.

`documentId` string

Returned document id value.

`revisionId` string

Returned revision id value.

`title` string

Returned title value.

**Example request and output**

Inspect returns this reviewed example, its estimated cost and the current input schema. Run calculates the estimate for your actual input.

### Request

```
{
  "tool_id": "google-drive.document-get",
  "input": {
    "path": {
      "documentId": "YOUR-GOOGLE-DRIVE-FILE-ID"
    }
  }
}
```

### Output

```
{
  "body": {
    "content": [
      {
        "endIndex": 1,
        "sectionBreak": {
          "sectionStyle": {
            "sectionType": "CONTINUOUS"
          }
        }
      },
      {
        "endIndex": 27,
        "paragraph": {
          "elements": [
            {
              "textRun": {
                "content": "The launch plan is ready.\n"
              },
              "endIndex": 27,
              "startIndex": 1
            }
          ]
        },
        "startIndex": 1
      }
    ]
  },
  "title": "Launch plan",
  "documentId": "1AbCdEfGhIjKlMnOpQrStUvWxYz",
  "revisionId": "revision-output-id"
}
```

**Errors and limitations**

- `connection_required`: This capability acts on your own Google Drive, which isn't connected yet.Open connect_url, approve Google Drive read and write access, then retry this run unchanged.

---

Canonical page: https://scrollport.com/tools/providers/google-drive/document-get
