优化 agent 网络搜索工具

This commit is contained in:
jxxghp
2026-05-28 17:22:52 +08:00
parent 12a2561ca8
commit 10290ca17b
4 changed files with 610 additions and 105 deletions

View File

@@ -146,6 +146,21 @@ MoviePilot 实现了标准的 **Model Context Protocol (MCP)**,允许 AI 智
}
```
**`search_web` 网络搜索示例**:
```json
{
"tool_name": "search_web",
"arguments": {
"query": "asyncio TaskGroup",
"search_engine": "duckduckgo",
"site_url": "https://docs.python.org/3/",
"max_results": 5
}
}
```
`search_engine` 可选,支持 `auto``exa``tavily``duckduckgo``google``bing``brave``yahoo``wikipedia``yandex``mojeek``site_url` 可选,用于限定搜索到指定域名或 URL 路径范围。
### 3. 获取工具详情
**GET** `/api/v1/mcp/tools/{tool_name}`