login
Fills and submits the saved credential for the current tab after user approval, removes the password if submission fails, and returns NO_CREDENTIAL when none is saved.
Instructions
Fills the login the user saved for the site shown in a tab, and submits it. It always submits; if the form cannot be submitted the password is removed again. You never see the password and cannot choose which site it is for: it is matched to the page itself. On a two-step sign-in it fills whichever field is visible; call it again when the next step appears. Fails with NO_CREDENTIAL if the user has not saved a login for that site. Use this only for a step you would otherwise hand back to the user. Nothing happens without the user's approval. If the result has status "needs_confirmation", nothing has been done yet: call the confirm tool with the values from its "confirm" object, unchanged.
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": "login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Start of the tab address, used when no tabId is given. With neither, the active tab is used. | |
| tabId | No | Chrome tab id of the tab you are working in. |