Upload File
upload_fileUpload a text file to a MikroTik router, overwriting same-name files over SFTP with plaintext FTP fallback; a dry-run checks connectivity only.
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 SFTP or FTP connectivity without writing the target file | |
| content | Yes | File content to upload (text) | |
| routerId | No | Router ID; omit to use the default router. |