-
Notifications
You must be signed in to change notification settings - Fork 432
Open
Description
Summary
Add --parent flag to gog sheets create to specify the destination folder, matching the behavior of docs create and slides create.
Current behavior
# docs and slides support --parent
gog docs create "My Doc" --parent=<folderId>
gog slides create "My Deck" --parent=<folderId>
# sheets does not
gog sheets create "My Sheet" # always creates in Drive root
gog sheets create "My Sheet" --parent=<folderId> # error: unknown flag --parentRequested behavior
gog sheets create "My Sheet" --parent=<folderId>Use case
Building safety wrappers that restrict LLM agents to only create/modify files in a specific folder. Currently sheets create can't be restricted because there's no way to specify the destination folder.
Notes
The Google Sheets API spreadsheets.create doesn't directly support setting a parent folder, but this could be implemented by:
- Creating the spreadsheet
- Moving it to the target folder via Drive API (
files.updatewithaddParents)
This is the same pattern that would be needed for any API that creates files without folder support.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels