download-gemini-images
- 作者仓库星标 0
- 作者更新于 2026年8月24日 15:33
- 作者仓库 claude-code-skills
Download Gemini Images
Overview
Download Gemini conversation images from the user's logged-in Chrome session. Prefer the lightbox image over thumbnail/page-preview assets because Gemini often exposes a larger blob: image only after the user opens a preview.
Workflow
- Use the Chrome plugin, not a fresh unauthenticated browser, because Gemini conversations usually require the user's existing Google session.
- Bootstrap Chrome per the Chrome skill, claim the already-open Gemini tab if it exists, or open the user-provided Gemini URL in Chrome.
- Import and run
scripts/download_gemini_images.mjsfrom anode_replJS call afterbrowseris available. - Package the output directory with
scripts/package_images.sh. - Report the ZIP path, image count, and any lower-resolution fallback.
- Finalize Chrome control after downloads are complete, keeping the user's original Gemini tab open when appropriate.
Main Script
Resolve the script path relative to this skill directory, then import it in the same Node REPL session used for Chrome automation:
var { downloadGeminiImagesFromChrome } = await import("/absolute/path/to/download-gemini-images/scripts/download_gemini_images.mjs");
var result = await downloadGeminiImagesFromChrome({
browser,
tabUrlIncludes: "gemini.google.com/app",
expectedCount: 20,
outputDir: `${nodeRepl.homeDir}/Downloads/gemini_conversation_images_${new Date().toISOString().slice(0, 10).replaceAll("-", "")}`
});
nodeRepl.write(JSON.stringify(result, null, 2));
Set expectedCount only when the user gave a specific count. Omit it to download every visible Show the uploaded image in a lightbox button.
Packaging
After the main script returns outputDir, run:
/absolute/path/to/download-gemini-images/scripts/package_images.sh "$outputDir" "$HOME/Downloads/gemini_conversation_images.zip"
The packaging script creates the ZIP, runs zip -T, and verifies that the archive contains the same ordered image files as the directory.
Fallback
If lightbox automation fails but the page is visibly loaded, use the tab pageAssets capability:
var pageAssets = await tab.capabilities.get("pageAssets");
var inventory = await pageAssets.list();
var uploaded = inventory.assets.filter(a => a.kind === "image" && a.url.includes("lh3.googleusercontent.com/gg/"));
var bundle = await pageAssets.bundle({ inventoryId: inventory.id, assetIds: uploaded.map(a => a.id) });
nodeRepl.write(JSON.stringify(bundle, null, 2));
This usually captures 512px preview JPEGs, not the larger lightbox files. Tell the user when this fallback is used.
Notes
- Do not inspect browser cookies, local storage, passwords, or session stores.
- Downloading files is an inbound transfer and does not require confirmation by itself.
- If Gemini asks the user to log in, pause and ask the user to complete login in Chrome.
- If the user wants the images in the same order as the thread, use the script's ordered names:
image_01.jpg,image_02.jpg, etc.
- 流狐分类
- AI 智能
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @daymade · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- macOS · Linux · Windows
- 底层运行要求
- Node.js
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Download Gemini conversation images from the user's logged-in Chrome session. Prefer the lightbox image over thumbnail/page-preview assets because Gemini often exposes a larger blob: image only after the user opens a preview.
Use the Chrome plugin, not a fresh unauthenticated browser, because Gemini conversations usually require the user's existing Google session. Bootstrap Chrome per the Chrome skill, claim the already-open Gemini tab if it exists, or open the user-provided Gemini…
Resolve the script path relative to this skill directory, then import it in the same Node REPL session used for Chrome automation: Set expectedCount only when the user gave a specific count. Omit it to download every visible Show the uploaded image in a…
After the main script returns outputDir, run: The packaging script creates the ZIP, runs zip -T, and verifies that the archive contains the same ordered image files as the directory.
If lightbox automation fails but the page is visibly loaded, use the tab pageAssets capability: This usually captures 512px preview JPEGs, not the larger lightbox files. Tell the user when this fallback is used.
Do not inspect browser cookies, local storage, passwords, or session stores. Downloading files is an inbound transfer and does not require confirmation by itself. If Gemini asks the user to log in, pause and ask the user to complete login in Chrome.
# Download Gemini Images
## Overview
Download Gemini conversation images from the user's logged-in Chrome session. Prefer the lightbox image over thumbnail/page-preview assets because Gemini often exposes a larger `blob:` image only after the user opens a preview.
## Workflow
1. Use the Chrome plugin, not a fresh unauthenticated browser, because Gemini conversations usually require the user's existing Google session.
2. Bootstrap Chrome per the Chrome skill, claim the already-open Gemini tab if it exists, or open the user-provided Gemini URL in Chrome.
3. Import and run `scripts/download_gemini_images.mjs` from a `node_repl` JS call after `browser` is available.
4. Package the output directory with `scripts/package_images.sh`.
5. Report the ZIP path, image count, and any lower-resolution fallback.
6. Finalize Chrome control after downloads are complete, keeping the user's original Gemini tab open when appropriate.
## Main Script
Resolve the script path relative to this skill directory, then import it in the same Node REPL session used for Chrome automation:
```js
var { downloadGeminiImagesFromChrome } = await import("/absolute/path/to/download-gemini-images/scripts/download_gemini_images.mjs");
var result = await downloadGeminiImagesFromChrome({
browser,
tabUrlIncludes: "gemini.google.com/app",
expectedCount: 20,
outputDir: `${nodeRepl.homeDir}/Downloads/gemini_conversation_images_${new Date().toISOString().slice(0, 10).replaceAll("-", "")}`
});
nodeRepl.write(JSON.stringify(result, null, 2));
```
Set `expectedCount` only when the user gave a specific count. Omit it to download every visible `Show the uploaded image in a lightbox` button.
## Packaging
After the main script returns `outputDir`, run:
```bash
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Overview → Workflow → Main Script → Packaging → Fallback → Notes
要点 -> Download Gemini conversation images from the user's logged-in Chrome session. · Set expectedCount only when the user gave a specific count. · The packaging script creates the ZIP, runs zip -T, and verifies that the archive contains the same ordered image files as the directory. · This usually captures 512px preview JPEGs, not the larger lightbox files. · - Do not inspect browser cookies, local storage, passwords, or session stores.
文件/命令 -> blob: · scripts/downloadgeminiimages.mjs · noderepl · browser · scripts/packageimages.sh · expectedCount · Show the uploaded image in a lightbox · outputDir
内容 SHA-256 -> 0677f5a536d5
方法与流程
适用与边界
原文中的明确线索
blob:、scripts/downloadgeminiimages.mjs、noderepl、browser、scripts/packageimages.sh、expectedCount、Show the uploaded image in a lightbox、outputDir