Fetch URL
fetch_urlMake HTTP/HTTPS requests from a MikroTik router to fetch web content. Returns response body inline (capped at 64 KB) or saves to router filesystem.
Instructions
Send an HTTP/HTTPS request from the router using /tool/fetch. Response body is returned inline (capped at 64 KB with [TRUNCATED] marker). Use outputFile to save to router filesystem instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | No | Router ID; omit to use the default router. | |
| url | Yes | URL to fetch from the router | |
| method | No | HTTP method | GET |
| httpData | No | Request body for POST | |
| outputFile | No | Save response body to this router file path instead of returning inline |