http_request
Send HTTP requests to REST APIs and webhooks with configurable methods, headers, and JSON or raw bodies, then inspect status, final URL, response headers, and body.
Instructions
任意の HTTP リクエストを送る汎用クライアント(stdlib urllib)。GET/POST/PUT/DELETE/PATCH、任意ヘッダ、body(生文字列)または json(dict を JSON 本文化)に対応。返り値はステータス・最終URL・主要ヘッダ・本文(長い場合は先頭を返し総バイト数を明記)。REST API や webhook を叩く時の基礎。
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": {
"url": "<url>"
},
"name": "http_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | リクエスト先 URL(http/https)。 | |
| body | No | 生の本文文字列。任意。 | |
| json | No | JSON 本文にする dict(Content-Type 自動)。任意。 | |
| method | No | GET/POST/PUT/DELETE/PATCH。省略時 GET。 | |
| headers | No | 追加ヘッダの dict。任意。 | |
| timeout | No | 秒。省略時 30。 | |
| max_bytes | No | 本文の取得上限バイト。省略時 200000。 |