http_request
Send HTTP requests (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS) to any URL with custom headers, query parameters, and body for interacting with web APIs.
Instructions
Execute an HTTP request with custom method, URL, headers, and body. Supports GET, POST, PUT, DELETE, PATCH, and other HTTP methods. The AI can choose all parameters based on the task requirements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to send the request to (e.g., "https://api.example.com/endpoint") | |
| body | No | Optional request body. Can be a string or an object (will be JSON stringified for objects) | |
| method | No | HTTP method to use (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS, etc.). Defaults to GET if not specified. | |
| params | No | Optional URL query parameters as key-value pairs (e.g., {"id": "123", "filter": "active"}) | |
| headers | No | Optional HTTP headers as key-value pairs (e.g., {"Content-Type": "application/json", "Authorization": "Bearer token"}) |