/agents-mcp:gemini-skillfrom agents-mcp
通过 Gemini 官网执行生图、对话等操作,提供 MCP 工具实现图片生成、会话管理、模型切换、图片上传与提取等功能。用户提到生图/画图/绘图等关键词时自动触发。
Ships in agents-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
与 Gemini 的一切交互,按以下优先级选择方式:
gemini_browser_info 获取 CDP 连接信息,主动连接到本 Skill 管理的浏览器进行操作。此方式必须先征得用户同意绝对禁止:自行启动新的浏览器实例访问 Gemini 页面(如使用 OpenClaw 浏览器、另起 Puppeteer 等),这会导致会话冲突。
浏览器 Daemon 未运行时 MCP 工具会自动拉起,无需任何手动操作。
MCP 工具调用(尤其是生图、等待回复等)可能耗时较长(60~180 秒)。必须遵守以下规则:
timeoutMs 必须设为 ≥180000(3 分钟),避免传输层提前超时截断。fullSize 模式失败,可降级重试 fullSize=false(预览图模式更稳定)。生图、画、绘图、海报、nano banana、nanobanana、image generation、生成图片本 Skill 通过 MCP Server 暴露工具,AI 直接调用即可。
浏览器启动、会话管理、图片提取、文件保存等流程已全部封装在工具内部。
AI 必须始终通过 MCP 工具完成所有操作。
禁止绕过 MCP 自行编写临时脚本(如
node -e "..."或创建.js临时文件)来import/require本项目导出的函数(如createGeminiSession、createOps等)。如果 MCP 工具确实无法满足当前需求,AI 必须先向用户说明原因并获得明确同意, 才能编写临时脚本调用底层 API。未经用户同意,一律禁止。
核心生图(封装完整流程):
| 工具名 | 说明 | 入参 |
|---|---|---|
gemini_generate_image | 完整生图流程:新建会话→发prompt→等待→提取图片→保存本地(耗时约 60~120 秒) | prompt,newSession(默认false),referenceImages(参考图路径数组),fullSize(默认true,高清原图;false则预览图),timeout(默认120000ms) |
会话管理:
| 工具名 | 说明 | 入参 |
|---|---|---|
gemini_new_chat | 新建一个空白对话 | 无 |
gemini_temp_chat | 进入临时对话模式(不保留历史记录) | 无 |
模型切换:
| 工具名 | 说明 | 入参 |
|---|---|---|
gemini_switch_model | 切换 Gemini 模型 | model(pro / quick / think) |
文本对话:
| 工具名 | 说明 | 入参 |
|---|---|---|
gemini_send_message | 发送文本消息并等待回答完成,直接返回 Gemini 的回复文本 | message,timeout(默认120000ms) |
图片操作:
| 工具名 | 说明 | 入参 |
|---|---|---|
gemini_upload_images | 上传图片到输入框(仅上传不发送,可配合 send_message) | images(路径数组) |
gemini_get_images | 获取会话中所有已加载图片的元信息 | 无 |
gemini_extract_image | 提取指定图片的 base64 并保存到本地 | imageUrl(从 get_images 获取) |
gemini_download_full_size_image | 下载完整尺寸的高清图片,默认最新一张,可指定索引 | index(可选,从0开始,从旧到新) |
gemini_share_latest_image | 为图片创建公开分享链接并直接返回链接,默认最新一张 | index(可选),timeout,copyToClipboard,closeDialog |
文字回复提取:
| 工具名 | 说明 | 入参 |
|---|---|---|
gemini_get_all_text_responses | 获取会话中所有文字回复(仅文字,不含图片) | 无 |
gemini_get_latest_text_response | 获取最新一条文字回复 | 无 |
登录状态:
| 工具名 | 说明 | 入参 |
|---|---|---|
gemini_check_login | 检查是否已登录 Google 账号 | 无 |
页面导航:
| 工具名 | 说明 | 入参 |
|---|---|---|
gemini_navigate_to | 打开指定的 Gemini 页面 URL(如历史会话链接),仅允许 gemini.google.com 域名 | url(目标 URL),timeout(默认30000ms) |
诊断 & 恢复:
| 工具名 | 说明 | 入参 |
|---|---|---|
gemini_probe | 探测页面各元素状态(输入框、按钮、模型等) | 无 |
gemini_reload_page | 刷新页面(卡住或异常时使用) | timeout(默认30000ms) |
gemini_browser_info | 获取浏览器连接信息(CDP 端口、wsEndpoint 等) | 无 |
快速生图(一步到位):
gemini_generate_image,传入 prompt → 返回本地图片路径生图并拿分享链接:
gemini_generate_image 生成图片gemini_share_latest_image 返回公开链接灵活组合(细粒度控制):
gemini_new_chat — 新建会话gemini_switch_model → pro — 切换到高质量模型gemini_upload_images — 上传参考图gemini_send_message — 发送描述词gemini_get_images → gemini_extract_image — 获取并保存图片排障:
gemini_probe — 看看页面元素有没有就位gemini_reload_page — 页面卡了就刷新gemini_browser_info — 获取 CDP 信息自行连接调试{
"mcpServers": {
"gemini": {
"command": "node",
"args": ["<项目绝对路径>/src/mcp-server.js"]
}
}
}
也可通过 npm run mcp 手动启动。
工具内部已包含重试逻辑。若仍然失败,返回值的 isError: true 和错误信息会告知原因:
npm run daemongemini_browser_info 查看浏览器状态排查references/gemini-flow.mdreferences/intent-routing.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub skillmds/skillmd --plugin agents-mcp34 skills in this plugin
/ads-mathCalculate and model paid-media CPA, CPL, CPC, CPM, ROAS, MER, break-even targets, contribution margin, LTV:CAC, impression-share opportunity, budgets, forecasts, and experiment economics. Use for PPC math, ad calculator, break-even analysis, ROAS calculator, CPA calculator, budget forecast, LTV CAC, or MER./agent-recallPersistent compounding memory for AI agents. 5 default MCP tools: session_start, session_end, remember, recall, check. Full surface (18 tools) available with --full flag. Two-verb model: inhale (session_start) and exhale (session_end). Correction-first memory with decision trail tracking, watch_for warnings, palace rooms with salience scoring, cross-project insight matching, same-day journal merging, ambient recall hooks. Local markdown only. Zero cloud, zero telemetry, Obsidian-compatible. Optional Supabase backend: when configured via `ar setup supabase`, recall() uses pgvector cosine similarity on OpenAI/Voyage embeddings instead of keyword search — same API, semantic understanding. Gracefully degrades to local search if not configured./aihot查询 AIHOT(aihot.news)的中文 AI 资讯。用户问今天或最近 AI 圈发生了什么、AI 新闻和 AI 日报、大模型与 AI 产品发布、OpenAI/Anthropic/Google 等公司或某个 AI 话题的最新消息、当前最热的 AI 事件及来龙去脉、AI 模型排行、Codex 额度重置,或其它 AI 行业动态时使用。必须实时查询 AIHOT,不凭训练记忆回答新闻;匿名只读,无需 API Key。/b0Delegate tasks to AI agents via Box0. Use when the user asks to
review code, check security, run tests, compare tools, get multiple
perspectives, research a topic, analyze data, write docs, or any
task that could benefit from specialized or parallel execution.
Also use when the user mentions agent names or says "ask", "delegate",
"get opinions from", or "have someone".
/bioqc-mcpAutomated sequencing quality control and advanced visualization wrapping FastQC, MultiQC, and custom chart generation. Exposes an MCP stdio server for live AI integration alongside a ClawBio CLI runner./BMW-design-analysisBMW's corporate site — distinct from BMW M's motorsport-bombastic variant, this is a measured and settled corporate-automotive interface. On a light (cream-tinted white) canvas, BMW corporate blue (#1c69d4) carries every primary CTA; dark navy hero bands frame model photography. BMW Type Next Latin sets the entire hierarchy on two weights — heavy 700 display and Light 300 body. Configuration and reservation flows ride a card-based 4-up grid, where each card holds a model render, a name, and a "Learn More" link.Other plugins' skills for the same job