Document Get

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

by Google DriveRequires connected account$0.0025 per request · $0.25 per 100 requests

Example

You ask your agent

“Show me what's in my “Launch plan” Google Doc.”

You get

Title
Launch plan
What your agent sends and gets back (JSON)

Your agent works out the exact inputs, such as IDs, dates and settings, from what you ask.

Request

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

Response

{
  "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"
}

Use it with your agent

Copy the prompt and paste it into your agent, then 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.

Your agent will also help you connect your app account the first time.

No agent yet? Create your account on the web and connect one from your dashboard later.

Other tools for this job

Compare all 3 →

Questions

Is Document Get by Google Drive free?

Scrollport has no free tier: it costs $0.0025 per request ($0.25 per 100 requests), paid per use from a prepaid wallet with no subscription. Connecting your first agent adds $1 of trial credit, so you can try it before adding funds.

Do I need my own Google account?

Yes. It works in the Google account you connect to Scrollport, with the access you approve. Scrollport does not provide Google accounts.

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.

All inputs and outputs

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
revisionIdstring
titlestring

Title of the record.

Errors and limits
  • 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.