调用本地工具
call_toolCalls recipe-based APIs by tool_id, fills URL/JSON placeholders, injects local header/query keys, sends GET/POST requests, and returns whitelist-trimmed JSON with optional focus slicing.
Instructions
按 tool_id 调用配方工具:自动填充 URL / JSON Body 占位符,按配方从本地 keys.json 注入 Header 或 Query Key,发起 GET/POST 请求,按白名单清洗字段并返回精简 JSON。长文本/更新日志可传 focus 关键词做精准切片;缺 Key 时返回中文引导且不计失败率;失败信息与日志中的 Key 一律脱敏。
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": {
"tool_id": "<tool_id>"
},
"name": "call_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| focus | No | 可选,用于对长文本/更新日志按关键词精准切片提取,多词用逗号分隔,如 "security, breaking";也兼容放在 params.focus | |
| params | No | 传给上游接口的参数对象,键名与 find_tool 返回的 params 一致;focus 也可放在这里,但不会被透传到上游 | |
| tool_id | Yes | 工具 ID,来自 find_tool 的返回,如 github_repo、currency_rate、ip_lookup、github_release、tavily_search、market_demo_logistics |