Get File Content
get_file_contentRetrieve text file contents from MikroTik routers for inspection or troubleshooting. Provide the exact file name to read its content directly.
Instructions
Read a text file's contents from a MikroTik router. Only suitable for text files — binary files will return garbled content.
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": {
"name": "<name>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact file name on the router (e.g. flash/script.rsc) | |
| routerId | No | Router ID; omit to use the default router. |