Save a login
browser_add_loginSaves a username and password pair to the Firefox password manager, defaulting the form action origin to the login origin when none is provided.
Instructions
Save a username/password pair in the Firefox password manager. MEASURED: nsILoginInfo.init needs a formActionOrigin (or an httpRealm) — adding without one fails with "Can't add a login without a httpRealm or formActionOrigin"; this tool defaults formActionOrigin to the origin. The password is written to the browser, never echoed back.
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": {
"origin": "<origin>",
"username": "<username>",
"password": "<password>"
},
"name": "browser_add_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | Origin the login belongs to (e.g. https://example.com) | |
| password | Yes | Password (written to the browser, not echoed) | |
| username | Yes | Username | |
| formActionOrigin | No | Form action origin (defaults to origin) |