Skip to content

List and search folders #507

Description

@fmgs31

The server allows searching for specific file types, like docs or spreadsheets, by using the functions in each specific module. However, list_drive_items and search_drive_files don't allow for any filter. This is an issue when searching for folders (right now, the response includes tons of times from all the types).

Solution you'd like:
A file type filter in list_drive_items and search_drive_files.
It's implemented here.
It works either by passing the mime type or by passing a human friendly word (like 'document').

Alternatives I've considered:

  • Another option was to add separate functions: list_drive_folders and search_drive_folders
    These seem like an unnecessary duplication, though.
  • I've also considered that the file type could be a list of strings instead of a single string. However, this will add complexity for the LLM that uses it, and it may be so infrequent that it is not worth it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions