HTTP Client
http_requestSend any HTTP request with full control over method, URL, headers, query parameters, and body. Securely reference environment variables in headers using ${VAR} placeholders.
Instructions
Send an arbitrary HTTP request and return the response.
Single generic HTTP client tool: the agent picks the method, URL, headers, query parameters and body. Returns status, headers, content-type and body.
Supported methods: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, TRACE.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL, e.g. https://api.example.com/v1/users. | |
| data | No | Raw text body (alternative to json_body). | |
| method | Yes | HTTP method in uppercase (GET, POST, ...). | |
| params | No | Query string (dict key->value) appended to the URL. | |
| headers | No | HTTP headers. A value of the form "${VAR}" is resolved from the server's environment variables: writing {"Authorization": "Bearer ${API_TOKEN}"} never exposes the real token to the agent. To test without a token, omit the header entirely. | |
| timeout | No | Maximum timeout in seconds. | |
| json_body | No | JSON object sent as the request body (POST/PUT/PATCH). | |
| follow_redirects | No | Whether to follow 3xx redirects. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||