Skip to content

drive_search tool has limitations with Google Drive Shared Drives #158

@historiographist

Description

@historiographist

The drive_search tool in the Gemini CLI appears to have limitations when interacting with Google
Drive Shared Drives, making it difficult to list their contents reliably.

Steps to Reproduce

  1. Provide the tool with a URL to a folder within a Shared Drive.
  2. The tool extracts the folder ID.
  3. An attempt to list the contents using a query like '<folder_id>' in parents returns an empty
    result set, even if the folder contains files.
  4. An attempt to get metadata for the folder using a query like id = '<folder_id>' can result in an
    "Invalid Value" error.

Expected Behavior

The drive_search tool should be able to list the contents of a folder within a Shared Drive, similar
to how it handles regular folders.

Actual Behavior

The tool is unable to reliably list the contents of a Shared Drive folder, likely because it is not
handling the specific API requirements for Shared Drives.

Environment

  • Gemini CLI
  • Google Workspace Extension

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions