diff --git a/src/main/tool-handlers-system.ts b/src/main/tool-handlers-system.ts index 8f60288..843c7d7 100644 --- a/src/main/tool-handlers-system.ts +++ b/src/main/tool-handlers-system.ts @@ -575,7 +575,7 @@ export async function handleWebSearch(params: { query: string; max_results?: num return { success: false, error: '搜索关键词不能为空' }; } - const maxResults = Math.min(params.max_results || 15, 20); + const maxResults = Math.min(params.max_results || 30, 30); const timeRange = params.time_range || ''; const enhanceSnippets = params.enhance_snippets !== false; // 默认开启 diff --git a/src/renderer/services/tool-registry.ts b/src/renderer/services/tool-registry.ts index a65fe39..c11a992 100644 --- a/src/renderer/services/tool-registry.ts +++ b/src/renderer/services/tool-registry.ts @@ -342,7 +342,7 @@ export const TOOL_DEFINITIONS: ToolDefinition[] = [ required: ['query'], properties: { query: { type: 'string', description: 'The search query. Be specific and concise for best results.' }, - max_results: { type: 'integer', description: 'Maximum number of results to return. Default: 15, max: 20.' }, + max_results: { type: 'integer', description: 'Maximum number of results to return. Default: 30, max: 30.' }, time_range: { type: 'string', enum: ['day', 'week', 'month', 'year'], description: 'Filter results by time. Supported by Bing and Google. Use for recent news, latest version, etc.' }, enhance_snippets: { type: 'boolean', description: 'Auto-fetch detailed snippet for results with too-short descriptions. Default: true.' } }