| name | google-drive-search |
| description | Google Drive を検索する。「Drive を検索」「ドライブ検索」「ファイルを探して」「Drive で検索」「Google Drive 検索」「ファイル名で検索」「条件で検索」などで起動。 |
Drive Search
Google Drive を検索します。
Help
ユーザーが --help を指定した場合、以下を表示して終了:
/google-drive-search - Drive Search
概要:
Google Drive を検索します。
使用方法:
/google-drive-search [検索キーワード]
オプション:
--help このヘルプを表示
引数
- 検索クエリ (必須): 名前の部分一致など(例:
spec)
実行方法
アクティブプロファイルで検索
python ~/.codex/lib/google/scripts/google_drive.py search --query "name contains '<検索キーワード>'"
プロファイル指定で検索
python ~/.codex/lib/google/scripts/google_drive.py --profile <profile-name> search --query "name contains '<検索キーワード>'"
検索クエリ例
--query "name contains 'spec'"
--query "name contains 'レポート'"
--query "mimeType='application/pdf' and name contains 'spec'"
--query "modifiedTime > '2024-01-01'"
--query "'<folder-id>' in parents and name contains 'spec'"
注意事項
- トークン未作成の場合は「Google ログイン」と言って認証を行ってください