AgentSkillsCN

drive-search

在Google Drive中进行搜索。“搜索Drive”“驱动器搜索”“查找文件”“在Drive中搜索”“Google Drive搜索”“按文件名搜索”“按条件搜索”等关键词均可启动搜索功能。

SKILL.md
--- frontmatter
name: drive-search
description: Google Drive を検索する。「Drive を検索」「ドライブ検索」「ファイルを探して」「Drive で検索」「Google Drive 検索」「ファイル名で検索」「条件で検索」などで起動。
allowed-tools: [Read, Bash]

Drive Search

Google Drive を検索します。

引数

  • 検索クエリ (必須): 名前の部分一致など(例: spec

実行方法

アクティブプロファイルで検索

bash
python plugins/shiiman-google/skills/drive-list/scripts/google_drive.py search --query "name contains '<検索キーワード>'"

プロファイル指定で検索

bash
python plugins/shiiman-google/skills/drive-list/scripts/google_drive.py search --profile <profile-name> --query "name contains '<検索キーワード>'"

検索クエリ例

bash
# 名前に "spec" を含む
--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 ログイン」と言って認証を行ってください