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.
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>"
},
"name": "fetch_url"
}
}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. |