Get File Content
get_file_contentRetrieve the text content of a file from a MikroTik router. Useful for reading scripts or configuration files stored on the device.
Instructions
Read a text file's contents from a MikroTik router. Only suitable for text files — binary files will return garbled content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | No | Router ID; omit to use the default router. | |
| name | Yes | Exact file name on the router (e.g. flash/script.rsc) |