i3-msg: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/i3-msg - from package: i3-wm

You may install the required package with command apt-get install {package}
Error in other languages:
i3-msg: bevel nie gevind nie
i3-msg: comandă negăsită
i3-msg: comando não encontrado
i3-msg: commande introuvable
i3-msg: command not found
i3-msg: käsku ei ole
i3-msg: không tìm thấy lệnh
i3-msg: komanda nerasta
i3-msg: Kommando nicht gefunden.
i3-msg: kommandot finns inte
i3-msg: komut yok
i3-msg: nie znaleziono polecenia
i3-msg: níor aimsíodh an t-ordú
i3-msg: no se encontró la orden
i3-msg: no s'ha trobat l'ordre
i3-msg: opdracht niet gevonden
i3-msg: parancs nem található
i3-msg: perintah tidak ditemukan
i3-msg: príkaz nenájdený
i3-msg: příkaz nenalezen
i3-msg: команда не найдена
i3-msg: командата не е открита
i3-msg: 命令找不到
i3-msg: コマンドが見つかりません