# File Export

Google Drive

Export a Google Docs, Sheets or Slides file as a private artifact.

## 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 File Export (tool ID: google-drive.file-export). 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:** [Manage Google Drive files](https://scrollport.com/tools/google-drive-mcp)

**Current price:** $0.0025/request

**Availability:** Requires connected account

## Tool details

**About this tool**

Exports one Workspace file to a caller-selected Google-supported MIME type, bounded to 25 MiB. Always one upstream request at $0.0025.

**Inputs and outputs**

### Input

`path` object · required

Identifier path for the authorised connected-app record.

`query` object · required

Search terms used to find relevant records.

### Output

`bytes` number

Returned bytes value.

`content_type` string

Returned content type value.

`filename` string

Returned filename value.

`note` string

Returned note 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.file-export",
  "input": {
    "path": {
      "fileId": "YOUR-GOOGLE-DRIVE-FILE-ID"
    },
    "query": {
      "mimeType": "application/pdf"
    }
  }
}
```

### Output

```
{
  "note": "file returned as a private artifact",
  "bytes": 32768,
  "filename": "workspace-export.bin",
  "content_type": "application/pdf"
}
```

**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.

---

Canonical page: https://scrollport.com/tools/providers/google-drive/file-export
