# Websearch

> Websearch is an Agent Skill for research published in the ZimoLiao/scholaraio repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use when the user needs current web results, recent information, source discovery, live Bing search, or GUILessBingSearch MCP search_bing support before ScholarAIO ingestion.

- Skill name: `websearch`
- Category: [Research](https://www.openparable.com/skill/research/1)
- Source: https://github.com/ZimoLiao/scholaraio/blob/HEAD/.claude/skills/websearch/SKILL.md
- Repository: ZimoLiao/scholaraio (546 GitHub stars when collected)

## SKILL.md

# websearch — 实时网页搜索

通过本地或远端 GUILessBingSearch 服务执行实时 Bing 搜索，获取互联网最新信息。
优先使用 MCP `search_bing` tool；HTTP `/search` 保留为兼容 fallback。

## 前置要求

1. 安装并启动 GUILessBingSearch 服务：
   ```bash
   # 安装
   git clone https://github.com/wszqkzqk/GUILessBingSearch
   cd GUILessBingSearch
   pip install -r requirements.txt

   # 启动服务
   python guiless_bing_search.py
   ```

2. 服务默认运行在 `http://127.0.0.1:8765`
3. 推荐 MCP endpoint 为 `http://127.0.0.1:8765/mcp`

## 用法

```bash
# 基本搜索
scholaraio websearch "深度学习 congestion control"

# 指定结果数量
scholaraio websearch "transformer architecture" --count 20
```

## 配置

推荐在 `config.yaml` 中配置 MCP：

```yaml
websearch:
  transport: mcp
  mcp_url: http://127.0.0.1:8765/mcp
  api_key: null  # 如服务配置了认证
  mcp_tool: search_bing
```

HTTP 兼容配置：

```yaml
websearch:
  transport: http
  base_url: http://127.0.0.1:8765
  api_key: null  # 如服务配置了认证
```

或通过环境变量：
```bash
export WEBSEARCH_TRANSPORT=mcp
export WEBSEARCH_MCP_URL=http://127.0.0.1:8765/mcp
export WEBSEARCH_URL=http://127.0.0.1:8765
export WEBSEARCH_API_KEY=your_key
```

## 输出示例

```
找到 10 条结果（'深度学习 congestion control'）：

[1] On the Design of High-throughput Congestion Control
    https://example.com/paper1
    深度学习方法在拥塞控制中的应用...

[2] Learning-based Congestion Control Survey
    https://example.com/paper2
    本文综述了基于学习的拥塞控制算法...
```

## 与其他功能配合

搜索结果可用于：
- 发现新的研究论文和 arXiv 链接
- 获取最新技术动态
- 验证本地知识库的信息完整性
- 为文献综述补充最新资料

## 故障排除

**服务不可用**
```
搜索服务未启动或不可达: http://127.0.0.1:8765
```
解决方案：
1. 确认 GUILessBingSearch 服务已启动
2. 检查端口是否被占用
3. MCP 模式下确认 `/mcp` endpoint 可访问，tool 名为 `search_bing`
4. HTTP fallback 下验证 `config.yaml` 中的 `websearch.base_url` 配置

---

Source: https://www.openparable.com/skill/research/websearch (OpenParable). Cite the canonical URL above.
