Actions67
- Interface Actions
- Firewall Address List Actions
- IP Pool Actions
- ARP Actions
- DHCP Server Actions
- IP Address Actions
- Hotspot Actions
- Queue Simple Actions
- Wireless Actions
- System Actions
- System Clock Actions
- System Identity Actions
- System Script Actions
- System Scheduler Actions
- IP Service Actions
- Netwatch Actions
- Log Actions
- Custom Command Actions
System Script → Add
AI-generatedSummary
Adds a new system script to the MikroTik RouterOS via /system/script/add.
Inputs
None.
Output shape
Each execution returns an array of items, each containing { resource, operation, count, data } where data is the RouterOS API response. If the cleanKeys option is enabled, hyphens and slashes in data keys are replaced with underscores.
The node processes items sequentially; connection retries and delays are governed by the options parameters.
Examples
Example 1: Add a script named 'backup' with source code and custom policies
scriptName: 'backup', scriptSource: '/system script ...', scriptPolicy: 'read,write', commentText: 'Nightly backup'}