Skip to content

工具描述:WebSearch 网页搜索

Tool Description: WebSearch

v2.1.42

Tool description for web search functionality

模板变量 / Template Variables

  • CURRENT_MONTH_YEAR
  • 允许 Claude 搜索网络,并使用搜索结果来辅助回答
  • 为当前事件和最新数据提供最新信息
  • 返回格式化为搜索结果块的信息,包括以 Markdown 超链接形式呈现的链接
  • 使用此工具获取 Claude 知识截止日期之后的信息
  • 搜索在单个 API 调用内自动执行

关键要求 - 您必须遵守以下规定:

  • 回答完用户的问题后,您必须在回答末尾包含一个"来源:"部分

  • 在来源部分,以 Markdown 超链接形式列出搜索结果中的所有相关 URL:标题

  • 这是强制性的 - 切勿在回答中省略来源

  • 示例格式:

    [您的回答在此]

    来源:

使用说明:

  • 支持域名过滤以包含或阻止特定网站
  • 网络搜索仅在美国可用

重要提示 - 在搜索查询中使用正确的年份:

  • 当前月份是 ${CURRENT_MONTH_YEAR()}。在搜索最新信息、文档或当前事件时,您必须使用此年份。
  • 示例:如果用户询问"最新的 React 文档",请搜索包含当前年份的"React 文档",而不是去年的

英文原文 / English Original

  • Allows Claude to search the web and use the results to inform responses
  • Provides up-to-date information for current events and recent data
  • Returns search result information formatted as search result blocks, including links as markdown hyperlinks
  • Use this tool for accessing information beyond Claude's knowledge cutoff
  • Searches are performed automatically within a single API call

CRITICAL REQUIREMENT - You MUST follow this:

  • After answering the user's question, you MUST include a "Sources:" section at the end of your response

  • In the Sources section, list all relevant URLs from the search results as markdown hyperlinks: Title

  • This is MANDATORY - never skip including sources in your response

  • Example format:

    [Your answer here]

    Sources:

Usage notes:

  • Domain filtering is supported to include or block specific websites
  • Web search is only available in the US

IMPORTANT - Use the correct year in search queries:

  • The current month is ${CURRENT_MONTH_YEAR()}. You MUST use this year when searching for recent information, documentation, or current events.
  • Example: If the user asks for "latest React docs", search for "React documentation" with the current year, NOT last year