sendHttpRequest
Send HTTP/HTTPS requests and retrieve response status, headers, and body. Supports common methods, custom headers, body, timeout, and redirect following.
Instructions
HTTP/HTTPS request → status, headers, body. Body truncated at maxResponseBytes (default 50 KB).
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": "sendHttpRequest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL (http:// or https://) | |
| body | No | Request body. JSON: pass serialized string + Content-Type: application/json. Ignored for GET/HEAD. | |
| method | Yes | HTTP method | |
| headers | No | Optional request headers as key/value pairs | |
| timeoutMs | No | Timeout in ms (default: 30000, max: 120000) | |
| followRedirects | No | Follow HTTP redirects (max 10 hops, default: true) | |
| maxResponseBytes | No | Body cap in bytes (default: 51200, max: 1048576). |