web_search
Perform real-time web searches to retrieve structured results with AI-generated summaries, supporting both English and Korean queries for comprehensive information gathering.
Instructions
Perform a real-time web search and get structured results with a summary. Returns top results with title, URL, snippet, and an AI-generated summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search query | |
| maxResults | No | Maximum number of results to return (default: 5) | |
| language | No | Language for results: 'ko' (Korean) or 'en' (English). Default: ko | ko |
Implementation Reference
- src/index.ts:151-172 (handler)The handler logic for the 'web_search' tool, which extracts arguments and calls the external AgentSkills API.
case "web_search": { const { query, maxResults = 5, language = "ko" } = args as { query: string; maxResults?: number; language?: string; }; const result = await callApi("/api/skills/web-search", { query, maxResults, language, }); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; } - src/index.ts:60-86 (schema)The tool definition and schema registration for 'web_search' in the ListToolsRequestSchema handler.
{ name: "web_search", description: "Perform a real-time web search and get structured results with a summary. " + "Returns top results with title, URL, snippet, and an AI-generated summary.", inputSchema: { type: "object", properties: { query: { type: "string", description: "The search query", }, maxResults: { type: "number", description: "Maximum number of results to return (default: 5)", default: 5, }, language: { type: "string", description: "Language for results: 'ko' (Korean) or 'en' (English). Default: ko", enum: ["ko", "en"], default: "ko", }, }, required: ["query"], }, },