# WebExtensions - Bookmarks Annotations

**URL:** <https://discourse.mozilla.org/t/webextensions-bookmarks-annotations/8871>\
**Category:** Development\
**Created:** [May 24, 2016, 3:16pm UTC](https://discourse.mozilla.org/t/webextensions-bookmarks-annotations/8871 "2016-05-24T15:16:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/peter/32/5191_2.png) [@peter](https://discourse.mozilla.org/u/peter)\
**Post date:** [May 24, 2016, 3:16pm UTC](https://discourse.mozilla.org/t/webextensions-bookmarks-annotations/8871/1 "2016-05-24T15:16:52Z")

</div>

I started playing around with WebExtensions [bookmarks](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/bookmarks/getTree) and saw, annotations (tags, keywords) are missing.

WebExtensions Code:

```
chrome.bookmarks.getTree(function (bookmarks) {
  console.log(JSON.stringify(bookmarks));
});

```

which gives me something like:

```
  {
    "id": "unfiled _____",
    "title": "Other Bookmarks",
    "index": 3,
    "dateAdded": 1453910567986,
    "parentId": "root ________",
    "dateGroupModified": 1464102245047,
    "children": [
      {
        "id": "iNJoychmG-4-",
        "title": "WebIDE Troubleshooting - Firefox Developer Tools | MDN",
        "index": 0,
        "dateAdded": 1464102204895,
        "parentId": "unfiled _____",
        "url": "https://developer.mozilla.org/en-US/docs/Tools/WebIDE/Troubleshooting"
      }
    ]
  }

```

while exporting the bookmarks directly in the browser will result in:

```
{
  "guid": "unfiled _____",
  "title": "Other Bookmarks",
  "index": 3,
  "dateAdded": 1453910567986000,
  "lastModified": 1464102245047000,
  "id": 5,
  "type": "text/x-moz-place-container",
  "root": "unfiledBookmarksFolder",
  "children": [
    {
      "guid": "iNJoychmG-4-",
      "title": "WebIDE Troubleshooting - Firefox Developer Tools | MDN",
      "index": 0,
      "dateAdded": 1464102204895000,
      "lastModified": 1464102204900000,
      "id": 40,
      "charset": "UTF-8",
      "iconuri": "https://developer.cdn.mozilla.net/static/img/favicon32.e02854fdcf73.png",
      "annos": [
        {
          "name": "bookmarkProperties/description",
          "flags": 0,
          "expires": 4,
          "value": "If you're trying to connect a Firefox OS device to WebIDE and it doesn't show up, here are some things you can try:"
        }
      ],
      "type": "text/x-moz-place",
      "uri": "https://developer.mozilla.org/en-US/docs/Tools/WebIDE/Troubleshooting"
    }
  ]
}

```

What can I do, to query/update/create bookmarks with annotations (tags, keywords) with WebExtensions/bookmarks?

---

<div class="post-metadata">

**Author:** ![leo](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/leo/32/35237_2.png) [@leo](https://discourse.mozilla.org/u/leo)\
**Post date:** [October 23, 2017, 7:00pm UTC](https://discourse.mozilla.org/t/webextensions-bookmarks-annotations/8871/2 "2017-10-23T19:00:03Z")

</div>

Closed on October 23, 2017, 7:00pm UTC

Discussion continued here: [WebExtensions Bookmarks Tags/Annotations - Come On](https://discourse.mozilla.org/t/webextensions-bookmarks-tags-annotations-come-on/20593)
