Import logins from a JSON file
browser_import_logins_from_fileImport logins from a JSON file by inserting each {origin, user, password} entry directly through nsILoginManager, bypassing LoginCSVImport errors. Duplicate origin+username entries are merged or rejected by Firefox.
Instructions
Read a JSON file holding an array of {origin, user, password} and insert each one through nsILoginManager directly, bypassing LoginCSVImport (which fails with FILE_PERMISSIONS_ERROR in this build). Tell the truth about duplicates: Firefox silently merges or rejects entries whose origin+username already exist.
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_import_logins_from_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a JSON file: array of {origin, user, password} |