Google Drive

GoogleDrive_MoveFile

Move a file or folder to a different folder within the same Google Drive. Can move to a folder (keeping name), or move and rename in one operation. By default, paths are resolved in My Drive. For shared drives, use file IDs or provide shared_drive_id.

Remote googledrive

Remote (network-hosted)

Other tools also called GoogleDrive_MoveFile? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "new_filename": {
      "type": "string",
      "description": "Optional new name for the file after moving. If None, keeps the original name. Defaults to None."
    },
    "shared_drive_id": {
      "type": "string",
      "description": "If working with paths in a shared drive, provide the shared drive ID. Not needed when using IDs. Defaults to None (uses My Drive)."
    },
    "source_file_path_or_id": {
      "type": "string",
      "description": "The source file path like folder/subfolder/filename or the file ID of the file to move. If providing a path, it will be resolved within 'My Drive' by default."
    },
    "destination_folder_path_or_id": {
      "type": "string",
      "description": "The path to the file's parent folder (exclude the file to be moved) or parent folder ID to move the file into. If None, moves to the root of the drive. Defaults to None."
    }
  }
}