I was able to capture screenshot with this command:
luna-send -n 1 -f luna://com.webos.surfacemanager/captureCompositorOutput '{"output":"/home/root/screenshot-temp.jpg","format":"JPG"}'
Though a problem that at the time when screenshot was taken a video was playing on the screen, screenshot is always a black picture. On other content it works.