fetch_api
Make REST API requests using HTTP methods like GET, POST, PUT, and DELETE with custom headers, body content, and timeout settings.
Instructions
Make a REST API request with various methods, headers, and body.
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>",
"method": "<method>",
"limit": "<limit>"
},
"name": "fetch_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL for the API endpoint. | |
| method | Yes | HTTP method for the request. | |
| headers | No | Request headers (e.g., for authorization). | |
| body | No | Request body (JSON object, string, etc.). | |
| timeout | No | Request timeout in milliseconds (default: 60000). | |
| limit | Yes | Maximum number of characters to return in the response body (required). | |
| redirect | No | Redirect mode for the request (default: follow). |