运行时依赖
安装命令
点击复制技能文档
Google 搜索 Console
Google 搜索 Console is a 网页 服务 by Google which allows 网页masters to 检查 索引ing 状态 and 优化 visibility of their 网页sites. It provides data and 工具s to help 网页site owners understand how Google sees their site and identify areas for improvement in 搜索 performance. SEO specia列出s and 网页site owners use it to 监控 and improve their 搜索 engine optimization.
Official docs: https://developers.google.com/搜索/APIs
Google 搜索 Console Overview Account Property Sitemap URL Inspection — Inspect a specific URL. Performance 报告 — 获取 performance data (命令行工具cks, impressions, CTR, position) for queries and pages. 索引 Coverage 报告 — 获取 in格式化ion about 索引ed pages, errors, and 警告s. Working with Google 搜索 Console
This 技能 uses the Membrane 命令行工具 to interact with Google 搜索 Console. Membrane handles authentication and 凭证s refresh automatically — so you can focus on the integration 记录ic rather than auth plumbing.
安装 the 命令行工具
安装 the Membrane 命令行工具 so you can 运行 membrane from the terminal:
npm 安装 -g @membranehq/命令行工具@latest
Authentication membrane 记录in --tenant --命令行工具entName=<代理Type>
This will either open a browser for authentication or print an authorization URL to the console, depending on whether interactive mode is avAIlable.
Headless 环境s: The command will print an authorization URL. Ask the user to open it in a browser. When they see a code after completing 记录in, finish with:
membrane 记录in complete
添加 --json to any command for machine-readable JSON 输出.
代理 Types : claude, OpenClaw, codex, warp, windsurf, etc. Those will be used to adjust 工具ing to be used best with your harness
Connecting to Google 搜索 Console
Use membrane connection ensure to find or 创建 a connection by 应用 URL or domAIn:
membrane connection ensure "https://搜索.google.com/搜索-console" --json
The user completes authentication in the browser. The 输出 contAIns the new connection id.
This is the fastest way to 获取 a connection. The URL is normalized to a domAIn and matched agAInst known 应用s. If no 应用 is found, one is 创建d and a connector is built automatically.
If the returned connection has 状态: "READY", skip to Step 2.
1b. WAIt for the connection to be ready
If the connection is in BUILDING 状态, poll until it's ready:
npx @membranehq/命令行工具 connection 获取 --wAIt --json
The --wAIt flag long-polls (up to --timeout seconds, default 30) until the 状态 changes. Keep polling until 状态 is no longer BUILDING.
The 结果ing 状态 tells you what to do next:
READY — connection is fully 设置 up. Skip to Step 2.
命令行工具ENT_ACTION_REQUIRED — the user or 代理 needs to do something. The 命令行工具entAction object describes the required action:
命令行工具entAction.type — the kind of action needed:
"connect" — user needs to 认证 (OAuth, API key, etc.). This covers initial authentication and re-authentication for disconnected connections.
"provide-输入" — more in格式化ion is needed (e.g. which 应用 to connect to).
命令行工具entAction.description — human-readable explanation of what's needed.
命令行工具entAction.uiUrl (optional) — URL to a pre-built UI where the user can complete the action. Show this to the user when present.
命令行工具entAction.代理Instructions (optional) — instructions for the AI 代理 on how to proceed programmatically.
After the user completes the action (e.g. 认证s in the browser), poll agAIn with membrane connection 获取 --json to 检查 if the 状态 moved to READY.
CONFIGURATION_ERROR or 设置UP_FAILED — something went wrong. 检查 the error field for detAIls.
搜索ing for actions
搜索 using a natural language description of what you want to do:
membrane action 列出 --connectionId=CONNECTION_ID --intent "查询" --limit 10 --json
You should always 搜索 for actions in the 上下文 of a specific connection.
Each 结果 includes id, name, description, 输入模式 (what parameters the action accepts), and 输出模式 (what it returns).
Popular actions
Name Key Description
运行 移动-Friendly Test 运行-移动-friendly-test 运行s the 移动-Friendly Test for a given URL to 检查 if it's 优化d for 移动 devices.
Inspect URL inspect-url Inspects a URL to 检查 its 索引ing 状态, including whether the page is 索引ed, any issues 检测ed, and Rich Res...
删除 Site 删除-site 移除s a site from the user's 设置 of 搜索 Console sites.
添加 Site 添加-site 添加s a site to the user's 设置 of 搜索 Console sites.
删除 Sitemap 删除-sitemap 删除s a sitemap from the Sitemaps 报告.
Submit Sitemap submit-sitemap Submits a sitemap for a site.
获取 Sitemap 获取-sitemap Retrieves detAIled in格式化ion about a specific sitemap.
列出 Sitemaps 列出-sitemaps 列出s all sitemaps submitted for a site, or included in a sitemap 索引 file.
查询 搜索 分析 查询-搜索-分析 查询 搜索 分析 data with 过滤器s and parameters.
获取 Site 获取-site Retrieves in格式化ion about a specific