Upload File
upload_fileUpload text files to MikroTik routers via SFTP with FTP fallback, overwriting existing files. Use dry-run to validate connectivity without writing.
Instructions
Upload a text file to a router, overwriting any existing file of the same name. Prefers SFTP (encrypted, over SSH) and falls back to plaintext FTP if SFTP is unavailable. Requires SSH (or FTP) access for the router user. Dry-run tests connectivity only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Target filename on the router (e.g. flash/my-script.rsc) | |
| dryRun | No | Validate FTP connectivity without writing the file | |
| content | Yes | File content to upload (text) | |
| routerId | No | Router ID; omit to use the default router. |