* 列出所有工具 * @param filter 过滤条件 * @returns 工具列表
(filter?: { type?: "builtin" | "custom" | "mcp"; category?: string; enabled?: boolean })
| 36 | * @returns 工具列表 |
| 37 | */ |
| 38 | async list(filter?: { type?: "builtin" | "custom" | "mcp"; category?: string; enabled?: boolean }): Promise<ToolInfo[]> { |
| 39 | const result = await this.request<{ tools: ToolInfo[] }>("/v1/tools", { |
| 40 | params: filter, |
| 41 | }); |
| 42 | return result.tools; |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * 获取工具详情 |
no outgoing calls
no test coverage detected