http_request
Send arbitrary HTTP/REST requests to call open APIs that lack a dedicated integration. Configure method, URL, headers, query parameters, body, timeout, and redirects for direct API access.
Instructions
发送任意 HTTP/REST 请求,用于访问未单独接入的开放 API。
Args: method: HTTP 方法,支持 GET、POST、PUT、PATCH、DELETE、HEAD、OPTIONS。 url: 完整 URL,必须是 http:// 或 https:// 开头。 headers: 附加请求头,例如 {"Authorization": "Bearer ..."}。 params: URL 查询参数对象。 json_body: 以 JSON 发送的请求体(对象或数组)。 body: 原始字符串请求体,与 json_body 二选一。 timeout: 请求超时秒数。 max_bytes: 最多读取的响应字节数,超出会被截断。 follow_redirects: 是否跟随重定向;每一跳都会重新执行安全检查。
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": {
"method": "<method>",
"url": "<url>"
},
"name": "http_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | No | ||
| method | Yes | ||
| params | No | ||
| headers | No | ||
| timeout | No | ||
| json_body | No | ||
| max_bytes | No | ||
| follow_redirects | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |