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 --parent
Requested 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.update with addParents)
This is the same pattern that would be needed for any API that creates files without folder support.
Summary
Add
--parentflag togog sheets createto specify the destination folder, matching the behavior ofdocs createandslides create.Current behavior
Requested behavior
Use case
Building safety wrappers that restrict LLM agents to only create/modify files in a specific folder. Currently
sheets createcan't be restricted because there's no way to specify the destination folder.Notes
The Google Sheets API
spreadsheets.createdoesn't directly support setting a parent folder, but this could be implemented by:files.updatewithaddParents)This is the same pattern that would be needed for any API that creates files without folder support.