web_search
Searches the web and returns summarized results with titles, snippets, and links, helping users find real-time news, technical documentation, tutorials, product details, and general knowledge.
Instructions
在互联网上搜索信息,返回相关搜索结果摘要 示例:web_search(query="Python最新版本", num_results=3)
适用场景:
查询实时新闻、最新资讯
搜索技术文档、教程
获取生活常识、百科信息
查找产品信息、价格对比
不适用场景:
需要精确计算的问题(请使用计算器工具)
查询当前天气(请使用天气工具)
Args: query: 搜索关键词,支持中英文 num_results: 返回结果数量,范围 1-10,默认 5
Returns: 搜索结果摘要,包含标题、摘要和链接
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "web_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| num_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |