Browser HTTP Basic Auth
browser_authSet or clear HTTP Basic/Digest credentials for the browser's native auth prompt before navigating to a protected URL, such as a password-protected staging site.
Instructions
Set or clear HTTP Basic/Digest Auth credentials for the current page — the kind of login prompt the browser itself shows (a native dialog), not a login form on the page. Call this BEFORE browser_navigate to a protected URL (e.g. a password-protected staging site). Use clear:true to remove credentials afterward.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Force a specific mode. Defaults to extension. | |
| clear | No | If true, clear any previously set credentials instead of setting new ones | |
| password | No | Basic Auth password (required unless clear:true) | |
| username | No | Basic Auth username (required unless clear:true) | |
| sessionId | No | Puppeteer session ID for headless mode. Skips mode selection. |