feat: integrate pi-chrome with tool search

This commit is contained in:
云服务部-叶林立
2026-08-26 10:46:47 +08:00
parent 939139b5f3
commit b658e52367
10 changed files with 77 additions and 4 deletions
@@ -166,6 +166,33 @@ export const BUNDLE_GROUP_DEFINITIONS: BundleGroupDefinition[] = [
keywords: ["ask", "question", "clarify", "choice", "preference", "提问", "澄清", "选择", "确认"],
tools: ["ask_user_question"],
},
{
id: "chrome-navigation",
title: "Chrome navigation and inspection",
summary: "Connect to the authorized Chrome bridge, manage tabs, navigate, inspect page structure, wait for state, and capture screenshots.",
useWhen: ["You need to inspect or navigate the user's existing signed-in Chrome profile after explicit /chrome authorization"],
avoidWhen: ["A normal web search or HTTP page fetch is sufficient, or Chrome has not been explicitly authorized"],
keywords: ["chrome", "browser", "tab", "navigate", "snapshot", "inspect", "screenshot", "浏览器", "标签页", "网页操作"],
tools: ["chrome_launch", "chrome_tab", "chrome_navigate", "chrome_snapshot", "chrome_find", "chrome_inspect", "chrome_wait_for", "chrome_screenshot"],
},
{
id: "chrome-interaction",
title: "Chrome page interaction",
summary: "Interact with an authorized Chrome page using real pointer, keyboard, touch, form, drag, and scroll input.",
useWhen: ["You must click, type, fill, press keys, hover, drag, tap, or scroll in the user's authorized Chrome session"],
avoidWhen: ["Page observation is enough, or the action is irreversible and the user has not approved it"],
keywords: ["chrome", "browser", "click", "type", "fill", "drag", "scroll", "点击", "输入", "滚动", "浏览器交互"],
tools: ["chrome_click", "chrome_type", "chrome_fill", "chrome_key", "chrome_hover", "chrome_drag", "chrome_tap", "chrome_scroll"],
},
{
id: "chrome-debugging",
title: "Chrome diagnostics and upload",
summary: "Evaluate page JavaScript, inspect captured console/network activity, retrieve response bodies, or attach local files.",
useWhen: ["Debugging the authorized Chrome page, examining fetch/XHR behavior, evaluating page state, or uploading an explicitly named local file"],
avoidWhen: ["Navigation, DOM inspection, or ordinary page interaction tools are sufficient"],
keywords: ["chrome", "browser", "console", "network", "javascript", "upload", "调试", "网络请求", "文件上传"],
tools: ["chrome_evaluate", "chrome_list_console_messages", "chrome_list_network_requests", "chrome_get_network_request", "chrome_upload_file"],
},
{
id: "mcp-management",
title: "MCP management",