Let Kodi show a random picture with ssh command

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= --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= --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,

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= --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.