Fetch URL
fetch_urlSend HTTP/HTTPS requests from a MikroTik router to retrieve remote data; returns response inline (max 64 KB) or saves to a router file.
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. Not read-only: POSTs have side effects and outputFile writes to the router.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to fetch from the router | |
| method | No | HTTP method | GET |
| httpData | No | Request body for POST | |
| routerId | No | Router ID; omit to use the default router. | |
| outputFile | No | Save response body to this router file path instead of returning inline | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |