mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-09 07:26:48 +00:00
优化 agent 网络搜索工具
This commit is contained in:
@@ -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}`
|
||||
|
||||
Reference in New Issue
Block a user