The bookmarks.search()
function searches for bookmark tree nodes matching the given query.
This function throws an exception if any of the input parameters are invalid or are not of an appropriate type; look in the console for the error message. The exceptions don't have error IDs, and the messages themselves may change, so don't write code that tries to interpret them.
This is an asynchronous function that returns a Promise
.