Ask Photoshop what the size of the image is and request it in the width and height.
The list of commands can be found on this page documentation/pages/index.html
You can't get the full image file, or metadata that way.
You can only get a preview/thumbnail - although you can request a thumbnail at a fairly large size.
And the network messages are documented in the SDK along side the network example code.