File Download

Google Drive

Download one non-Workspace Drive file as a private artifact.

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

What this API does

Downloads at most 25 MiB and persists the bytes behind the run's signed artifact boundary. Always one upstream request at $0.0050.

Agents select this operation with tool ID google-drive.file-download, 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

bytesnumber

Returned bytes value.

content_typestring

Returned content type value.

filenamestring

Returned filename value.

notestring

Returned note 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.file-download",
  "input": {
    "path": {
      "fileId": "YOUR-GOOGLE-DRIVE-FILE-ID"
    },
    "query": {
      "supportsAllDrives": true
    }
  }
}

Output

{
  "note": "file returned as a private artifact",
  "bytes": 24576,
  "filename": "drive-download.bin",
  "content_type": "application/pdf"
}
Teaching errors and limitations
  • connection_required: This capability acts on the connected Google Workspace, which is not available yet.Open connect_url, approve Google Drive access, then retry this run unchanged.
Updated
22 August 2026

Use File Download 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.