Bookmark server side: get_tree function