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.
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) |