Loading...
Loading...
阿里云百炼联网搜索(web search)入口:为联网搜索 / 网页搜索 / 查最新资讯做路径分发。 先识别当前连接身份:Token Plan(profile `token-plan` 或 base_url host 为 `token-plan.<region>.maas.aliyuncs.com`)→ 模型自带搜索 (`bl text chat --api responses --tool '{"type":"web_search"}'`);其他 / 默认 → Bailian MCP(`bl search web`);仅在 MCP 鉴权失败、未开通或传输失败时兜底一次到模型自带搜索。 Token Plan 联网搜索失败、两条路径鉴权混淆的排查也走本技能。 反触发:宿主可完成的 普通问答 / 编程 / 写作 → 不触发;知识库 RAG → bailian-cli (`bl knowledge`);生图/生视频/语音 → bailian-gen;精调/训练 → bailian-finetune; agents.yaml → bailian-managed-agent。 共享协议(consent / 版本预检 / 鉴权 / 错误上报)在 bailian-protocol;官方安装 `bl skill init`。
npx skill4agent add modelstudioai/cli bailian-web-searchbailian-web-search../bailian-protocol/SKILL.mdbl skill initScope: model-aware routing for web search inside Agent-drivenworkflows — this skill owns the routing decision only. Command flags / usage / examples: Read skillblreference if installed; elsebailian-cli/bl search web --help— do not guess flags.bl text chat --helpInstall (supported):bl skill init
bl search webbl config show --output jsonusesTokenPlanEndpointconfigtoken-planbase_urltoken-plan.<region>.maas.aliyuncs.comhttps://token-plan.cn-beijing.maas.aliyuncs.com| Condition | Route | Notes |
|---|---|---|
| Token Plan model identity | Model-native path | Preferred — the only path Token Plan keys authorize |
| Any other model / default | MCP path | Default for regular DashScope API keys |
| MCP path (eligible fail) | Model-native path, exactly once | Fallback — only for the failure classes below |
bl search webbl text chat --api responses --tool '{"type":"web_search"}' --message "搜索近期的阿里云新闻"{"type":"web_search"}--modeldefault_text_model--model--messagebailian-protocolbailian-clibl text chat --helpbl search web --query "阿里云百炼最新功能"bailian-clibl search web --helpbl search webMCP request failed: 404未开通MCP不存在MCP_IS_INVALID--query--modelbailian-protocol# Step 1: identify the active model identity
bl config show --output json
# Token Plan identity → model-native web search (no --model unless user named one)
bl text chat --api responses --tool '{"type":"web_search"}' --message "搜索近期的阿里云新闻"
# Default identity → Bailian MCP search
bl search web --query "阿里云百炼最新功能"
# Eligible MCP failure → fall back once (same rule: no hardcoded --model)
bl text chat --api responses --tool '{"type":"web_search"}' --message "阿里云百炼最新功能"blbailian-protocolblblbailian-clibl knowledge--systembailian-clibailian-genbailian-finetunebailian-managed-agentbl … --helpbl skill initbl skill initbailian-clibl search webbl text chat--help