sign_in
Authenticate an Amazon account through a browser window on the user's computer so users enter credentials only on Amazon's own page and order tools can access the account.
Instructions
Sign the user in to Amazon, when they ask you to or after a tool says they aren't signed in. Opens a browser window on the user's computer, where they sign in on Amazon's own page, so their credentials are never seen. Wait for them to finish, which they have 120 seconds to do. If it says there's no browser to sign in with, ask the user which to use, then call this again with browser.
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": "sign_in"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | The Amazon site to sign in to, e.g. `amazon.de`, since each site has its own sign-in. By default, the user's default site. | |
| account | No | The Amazon account to sign in to, by a name for it, e.g. `spouse`, to add someone else's own account, like a partner's. By default, the user's default account. | |
| browser | No | Only when there's no browser to sign in with: the one the user chose, either one offered to download for them or a browser they already have installed. It's saved, so they're only asked once. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | The Amazon site, as `site` accepts it. | |
| error | No | Why the session couldn't be checked, if it couldn't. `signed_in` is null then. | |
| sites | Yes | Every site checked: the one asked about, or else the default site and every other site with a saved session. | |
| account | Yes | The Amazon account checked, as `account` accepts it. | |
| default | Yes | Whether it's the user's default site, which tools read when they aren't given `site`. | |
| sign_in | No | What to do to sign in, if the user isn't. | |
| accounts | Yes | Every Amazon account with a saved session, the default one first. | |
| signed_in | Yes | Whether Amazon still accepts the user's saved session for the site. If Amazon answers the check with an error page, a saved session is assumed to still work. Null if the session couldn't be checked at all. |