Let Kodi show a random picture with ssh command

Hey,
I want Kodi to show a picture randomly from a folder on the local SD-Card, but I can’t get it to work. It just does nothing.
The command I used:
> xbmc-send --host=192.168.0.101 --port=9777 --action=“xbmc.SlideShow(/home/osmc/Pictures/Modes/GameMode/ [,recursive, random])”

I also tried it to let it show a specific picture which didn’t work as well:
> xbmc-send --host=192.168.0.101 --port=9777 --action="xbmc.ShowPicture(/home/osmc/Pictures/Modes/GameMode/1.jpg)

File paths and name are correct and even pictures from the web aren’t working either. Other xbmc commands do work.

Thanks in advance and kind regards,
Christian

Solved it, I forgot a ‘,’ within the brackets :S

Out of curiosity, can you post the final working version?

Sure, here it is:

xbmc-send --host=192.168.0.101 --port=9777 --action=“xbmc.SlideShow(/home/osmc/Pictures/Modes/GameMode/,[,random,])”

I didn’t mess with the ShowPicture command anymore so I don’t know about this.