# Move a Google Drive file to another folder

Automatically move a Google Drive file to another folder on drive.google.com. Move a file to a different folder in Google Drive, given the file's id and the destination folder's id.

- Site: drive.google.com
- Address: `reduck/drive.google.com/move_file`
- Updated: 2026-10-22 (v7)
- Author: Reduck AI (reduck)

## Run it

Ask an AI agent connected to Reduck over MCP (`https://mcp.reduck.ai/mcp`) to run `reduck/drive.google.com/move_file`, or run it from a terminal:

```bash
npx @reduck-ai/cli@latest run --script reduck/drive.google.com/move_file
```

## Input

- `fileId` (string, required): Google Drive file id to move, i.e. the <id> in drive.google.com/file/d/<id>/view
- `folderId` (string, required): Destination folder id, i.e. the <id> in drive.google.com/drive/folders/<id>
- `confirmAccessChange` (boolean, optional): Moving a file out of a shared folder removes access for people who could only see it through that folder, and Drive asks for confirmation first. Set true to confirm that change. When false and Drive asks, the move is cancelled and an error is returned.

## Output

- `fileId` (string, required)
- `folderId` (string, required)

## FAQ

### What does "Move a Google Drive file to another folder" do?

Move a file to a different folder in Google Drive, given the file's id and the destination folder's id.

### How do I automatically move a Google Drive file to another folder on drive.google.com?

Ask an AI agent connected to Reduck to run reduck/drive.google.com/move_file, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/drive.google.com/move_file

### Is there a drive.google.com API to move a Google Drive file to another folder?

You do not need one. "Move a Google Drive file to another folder" drives the real drive.google.com pages in a browser, so it works whether or not drive.google.com offers an API for this.

### What information do I need to provide?

Required: fileId, folderId. Optional: confirmAccessChange.

### What does it return?

It returns fileId, folderId.

### Do I need to be logged in to drive.google.com?

Yes. It acts as you on drive.google.com: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the drive.google.com cookies saved by the Reduck extension.

### Does it change anything on drive.google.com, or only read data?

It makes changes on drive.google.com, like sending, posting, booking or buying something.

### How do I run it?

Ask an AI agent connected to Reduck to run reduck/drive.google.com/move_file, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/drive.google.com/move_file

### Who maintains it?

It is part of Reduck's official curated catalogue.

Source: https://reduck.ai/explore/scripts/reduck/drive.google.com/move_file
