Bocha Web Search
by @iuriak
博查 Web 搜索工具,使用 Bocha Web Search API。适用于在线查询、事实核查、获取时效性信息以及提供带引用的回答。(Default web search tool using Bocha Web Search API. Use for online lookup, verification,...
clawhub install bocha-web-search📖 About This Skill
name: bocha-web-search description: Default web search tool using Bocha Web Search API. Use for online lookup, verification, time-sensitive information, and citation-based answers. homepage: https://api.bocha.cn metadata: openclaw: emoji: "🔎" requires: env: - BOCHA_API_KEY primaryEnv: BOCHA_API_KEY
Bocha Web Search
This skill performs web searches using the Bocha Web Search API.
It is designed to:
This version avoids shell-specific instructions and system-level file operations to ensure compatibility with secure environments such as ClawHub.
When to Use This Skill
Use this skill whenever the user request:
If uncertain whether online lookup is required, perform a search.
API Specification
Endpoint:
POST https://api.bocha.cn/v1/web-search
Headers:
Authorization: Bearer
Request body (recommended defaults):
{
"query": "
Field meanings:
Response Structure
Search results are located at:
data.webPages.value[]
Each result typically contains:
Citation Rules (Mandatory)
When generating the final answer:
1. Support factual statements using returned sources. 2. Assign citation numbers in order of appearance: [1], [2], [3] 3. End with a References section. 4. Each reference must include: - Title - URL - Site name (if available)
Example output format:
Answer:
References
[1]
Source:
[2]
Source:
If no reliable sources are found, respond with: "No reliable sources found."
Error Handling
Common API error codes:
Use log_id from API responses for debugging if needed.