Import a Netscape HTML bookmark file
browser_bookmarks_importImports Netscape Bookmark HTML files into Firefox by recreating exported folders and links under a chosen bookmark folder. Use it to restore or migrate bookmarks when native import is unavailable.
Instructions
Read a Netscape Bookmark HTML file and recreate its folders and links under a chosen bookmark folder. MEASURED: Firefox has no importFromHTML in this build, so this parses the file with DOMParser and calls PlacesUtils.bookmarks.insert per item. Import is one level of grouping: each opens a folder and the following entries land inside it, which matches how browsers export a single grouping level.
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_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute .html file to read | |
| parentGuid | No | Destination folder guid (default: bookmarks menu) |