智能搜索接口
smart_search_apiTurn natural language descriptions into relevant API paths. Describe a feature or business scenario, and get ranked API search results with automatic keyword extraction.
Instructions
根据自然语言描述智能搜索接口,AI 的首选搜索工具。
核心能力:
自动提取关键词并映射到接口路径
支持中英文混合查询
按相关度排序返回结果
使用场景:
用户描述功能需求:"查找用户登录接口" → 搜索 login/auth
用户询问模块接口:"达人管理有哪些接口" → 搜索 influencer/daren
用户描述业务场景:"获取订单列表" → 搜索 order/list
优先使用此工具进行语义搜索,再用 get_api_detail 获取详情
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": "smart_search_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | 自然语言描述的功能需求或业务场景 |