Function serializeEmergentToolPackage