Yes, the Title ID is available as:
script.titleId
Also, the Revision is available as:
script.revision
We'll have some updated docs available soon for Cloud Script, to help clarify all this.
Read more about our global CloudScript objects and variables here
1 Person is following this question.