-
Notifications
You must be signed in to change notification settings - Fork 67
feat: remove slides.find and sheets.find in favor of drive.search #271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5ff081d
feat: remove slides.find and sheets.find in favor of drive.search
allenhutchison 214ccc0
refactor: move Sheets/Slides details from WORKSPACE-Context to skills
allenhutchison 9626cd6
refactor: remove unused buildDriveSearchQuery and MIME_TYPES
allenhutchison 6cd7ca8
style: run prettier formatting
allenhutchison File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| --- | ||
| name: sheets | ||
| description: > | ||
| Activate this skill when the user wants to find, read, or analyze Google | ||
| Sheets spreadsheets. Contains guidance on searching for spreadsheets, output | ||
| formats, and range-based operations. | ||
| --- | ||
|
|
||
| # Google Sheets Expert | ||
|
|
||
| You are an expert at working with Google Sheets spreadsheets through the | ||
| Workspace Extension tools. Follow these guidelines when helping users with | ||
| spreadsheet tasks. | ||
|
|
||
| ## Finding Spreadsheets | ||
|
|
||
| Use `drive.search` with a Sheets MIME type filter to find spreadsheets: | ||
|
|
||
| ``` | ||
| drive.search({ | ||
| query: "mimeType='application/vnd.google-apps.spreadsheet' and name contains 'Budget'" | ||
| }) | ||
| ``` | ||
|
|
||
| For full-text search across spreadsheet content, use `fullText contains` instead | ||
| of `name contains`. | ||
|
|
||
| ## Reading Data | ||
|
|
||
| ### Full Spreadsheet | ||
|
|
||
| Use `sheets.getText` to read all sheets in a spreadsheet. Choose the output | ||
| format based on the use case: | ||
|
|
||
| - **text** (default): Human-readable with pipe-separated columns — good for | ||
| quick review | ||
| - **csv**: Standard CSV format — good for data export and analysis | ||
| - **json**: Structured JSON keyed by sheet name — good for programmatic | ||
| processing | ||
|
|
||
| ### Specific Range | ||
|
|
||
| Use `sheets.getRange` with A1 notation to read a specific cell range: | ||
|
|
||
| ``` | ||
| sheets.getRange({ | ||
| spreadsheetId: "spreadsheet-id", | ||
| range: "Sheet1!A1:D10" | ||
| }) | ||
| ``` | ||
|
|
||
| ### Metadata | ||
|
|
||
| Use `sheets.getMetadata` to get spreadsheet structure without reading data — | ||
| includes sheet names, row/column counts, locale, and timezone. | ||
|
|
||
| ## ID Handling | ||
|
|
||
| - All tools accept Google Drive URLs directly — no manual ID extraction needed | ||
| - IDs and URLs are interchangeable in all `spreadsheetId` parameters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| --- | ||
| name: slides | ||
| description: > | ||
| Activate this skill when the user wants to find, read, or extract content from | ||
| Google Slides presentations. Contains guidance on searching for presentations, | ||
| reading text, downloading images, and getting thumbnails. | ||
| --- | ||
|
|
||
| # Google Slides Expert | ||
|
|
||
| You are an expert at working with Google Slides presentations through the | ||
| Workspace Extension tools. Follow these guidelines when helping users with | ||
| presentation tasks. | ||
|
|
||
| ## Finding Presentations | ||
|
|
||
| Use `drive.search` with a Slides MIME type filter to find presentations: | ||
|
|
||
| ``` | ||
| drive.search({ | ||
| query: "mimeType='application/vnd.google-apps.presentation' and name contains 'Quarterly Review'" | ||
| }) | ||
| ``` | ||
|
|
||
| For full-text search across presentation content, use `fullText contains` | ||
| instead of `name contains`. | ||
|
|
||
| ## Reading Content | ||
|
|
||
| ### Text Extraction | ||
|
|
||
| Use `slides.getText` to extract all text content from a presentation. Text is | ||
| organized by slide with clear separators. | ||
|
|
||
| ### Metadata | ||
|
|
||
| Use `slides.getMetadata` to get presentation structure — includes slide count, | ||
| object IDs, page size, and layout information. Slide object IDs from metadata | ||
| can be used with `slides.getSlideThumbnail`. | ||
|
|
||
| ## Downloading Images | ||
|
|
||
| ### All Images | ||
|
|
||
| Use `slides.getImages` to download all embedded images from a presentation to a | ||
| local directory. Requires an **absolute path** for the output directory. | ||
|
|
||
| ### Slide Thumbnails | ||
|
|
||
| Use `slides.getSlideThumbnail` to download a thumbnail of a specific slide. | ||
| Requires the slide's `objectId` (from `slides.getMetadata` or `slides.getText`) | ||
| and an **absolute path** for the output file. | ||
|
|
||
| ## ID Handling | ||
|
|
||
| - All tools accept Google Drive URLs directly — no manual ID extraction needed | ||
| - IDs and URLs are interchangeable in all `presentationId` parameters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah didn't realize there are specific skills that need to be updated with #256. Thanks!