If you have to do this on remote vCo server then you can use the REST plug-in.
HTTP get on /packages/ gets all the package list
/package/packageName/ get all the content of a workflow.
You will get JSON strings. You can convert these to object doing var pckgDetail = eval(jsonString);
Here is an example when getting the package content
var workflows = pckgDetail.workflows; for (var w = 0; w < workflows.length; w++) { var workflow = workflows[w]; var attributes = workflow.attributes; for (var j = 0; j < attributes.length; j++) { var attribute = attributes[j]; if (attribute.name == "id") { if (attribute.value == workflowId) { packageArray.push(pckgDetail.name); } } } }