Replacing findfoldersbyname() with findcontentbyattribute() Content Tools Plugin

I am trying to replace findfoldersbyname() with findcontentbyattribute(), but can only get findcontentbyattribute() to return a List of Content, it returns something like [Content:56629].

 Is there any way to return the folder itself instead of [Content:56629]? 

findfoldersbyname() returns a folder object and I would like findcontentbyattribute() to do the same or somehow use what it returns ([Content:56629]) to return the folder itself.

  Discussion posts and replies are publicly visible