From c191906fb5ac4e6e0041f01157be285e26555ae8 Mon Sep 17 00:00:00 2001 From: thzxx Date: Fri, 12 Jun 2026 13:43:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20web=5Fsearch=E5=92=8Cweb=5Ffetch?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=AE=9A=E4=B9=89=E4=B8=AD=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E8=81=94=E5=8A=A8=E8=AF=B4=E6=98=8E=EF=BC=8C=E5=BC=95=E5=AF=BC?= =?UTF-8?q?AI=E6=90=9C=E7=B4=A2=E5=90=8E=E6=89=B9=E9=87=8F=E6=8A=93?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/services/tool-registry.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/services/tool-registry.ts b/src/renderer/services/tool-registry.ts index c11a992..53c245f 100644 --- a/src/renderer/services/tool-registry.ts +++ b/src/renderer/services/tool-registry.ts @@ -163,7 +163,7 @@ export const TOOL_DEFINITIONS: ToolDefinition[] = [ type: 'function', function: { name: 'web_fetch', - description: 'Fetch content from a URL. Returns the page text content (HTML stripped). Supports HTTP/HTTPS. Automatically retries on failure (up to 2 times with exponential backoff). Will auto-upgrade to browser rendering for JavaScript-heavy pages that return empty shells.', + description: 'Fetch and extract full text content from a URL. Typically used after web_search: pick the most relevant result URLs from search and call web_fetch on each to get detailed content before answering. Automatically retries on failure (up to 2 times with exponential backoff). Auto-upgrades to browser rendering for JavaScript-heavy pages.', parameters: { type: 'object', required: ['url'], @@ -336,7 +336,7 @@ export const TOOL_DEFINITIONS: ToolDefinition[] = [ type: 'function', function: { name: 'web_search', - description: 'Search the web using 4 engines in parallel (Bing + Baidu + Sogou + 360). Results are intelligently ranked by reachability + engine weight + snippet quality. 5-minute cache. Supports time range filtering (day/week/month/year). Short snippets are auto-enhanced via web_fetch. Use when you need current, time-sensitive, or factual information.', + description: 'Search the web. Returns title, URL, and short snippet for each result. Snippets are summaries only — to get full page content, you MUST call web_fetch on the relevant result URLs. After searching, pick 3-5 most relevant results and call web_fetch on each before composing your answer. Supports time range filtering (day/week/month/year).', parameters: { type: 'object', required: ['query'],