Export bookmarks as Netscape HTML
browser_bookmarks_exportExports Firefox bookmarks to a Netscape Bookmark HTML file, enabling transfer or backup across browsers such as Chrome, Edge, and Safari.
Instructions
Write the bookmark tree to a Netscape Bookmark HTML file. That is the format Chrome, Edge and Safari also export, so it is how bookmarks move between browsers. MEASURED: Firefox has no usable exportToHTML in this build, so this walks PlacesUtils.bookmarks.search({parentGuid}) recursively and builds the HTML itself. TWO TRAPS: item.url is a URI object (read .spec), and search({parentGuid}) also returns the parent folder itself which must be skipped or the walk never ends.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "browser_bookmarks_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute .html file path to write | |
| maxNodes | No | Node budget (default 2000) |