scripting to pull the tx-current from interface

you mean current tx-bits-per-second or tx-bits-per-second?
it’s under /interface monitor-traffic
wiki about that

i’m not very familiar with MT sintax, i tried to rewrite one of scripts, but fail.
so i can give only a sample of another variable- wlan frequency, but i think it should be something similar:
in terminal - all info about wlan

/interface wireless monitor wlan once do=

and script who creates variable freq

/interface wireless monitor wlan once do={:global freq [:pick $channel 0 4]}

/interface monitor-traffic wlan once do=
and extract variable tx-bits-per-second

upd:
Found example in this forum too
although there is /interface monitor, but needs /interface monitor traffic it’s working.

/interface monitor-traffic wlan once do={
:global txbps $(“tx-bits-per-second”);
:global rxbps $(“rx-bits-per-second”);
}