feat: 添加 web_extract 网页内容提取工具
- 使用 Tavily Extract API 从 URL 提取网页内容 - 支持批量提取(最多 20 个 URL) - 支持 basic/advanced 提取深度 - 支持 markdown/text 输出格式 - 可选提取图片列表 - 复用 WebPermissionChecker 进行权限管控
This commit is contained in:
+3
-2
@@ -24,7 +24,7 @@ import {
|
||||
} from './filesystem/index.js';
|
||||
|
||||
// Web 工具
|
||||
import { webSearchTool } from './web/index.js';
|
||||
import { webSearchTool, webExtractTool } from './web/index.js';
|
||||
|
||||
// 所有工具列表(用于注册)
|
||||
const allToolsWithMetadata: ToolWithMetadata[] = [
|
||||
@@ -47,8 +47,9 @@ const allToolsWithMetadata: ToolWithMetadata[] = [
|
||||
copyFileTool,
|
||||
deleteFileTool,
|
||||
|
||||
// Web 工具 (deferLoading: true)
|
||||
// Web 工具 (deferLoading: false)
|
||||
webSearchTool,
|
||||
webExtractTool,
|
||||
];
|
||||
|
||||
// 注册所有工具到 registry
|
||||
|
||||
Reference in New Issue
Block a user