Back to Document authoring

Document Get

Google Drive

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

Current price
$0.0050/call
Availability
Connected app
Last accepted verification

What this API does

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

Agents select this operation with tool ID google-drive.document-get, then inspect its current executable contract before a run.

Public input and output shape

Input

pathobject · required

Identifier path for the authorised connected-app record.

queryobject · optional

Search terms used to find relevant records.

Output

bodyobject

Bounded request body sent to the connected application.

documentIdstring

Returned document id value.

revisionIdstring

Returned revision id value.

titlestring

Returned title value.

Example request and output

This reviewed worked example is shared with inspect. Inspect also returns the current executable schema and price estimate before a paid run.

Request

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

Output

{
  "body": {
    "content": [
      {
        "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"
}
Teaching 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.
Updated
21 August 2026

Use Document Get with Scrollport

Scrollport validates tools for connected apps and provides them on a pay-as-you-go basis so your agent can use accounts you already own without receiving sensitive API keys.

Give your agent the setup prompt to receive $1 in trial credit and start using the tools right away.