buy_connect
Connect a merchant for shopping. For merchants that need a real login (e.g. DoorDash) this opens a secure hosted browser session and returns a URL the user opens to log in; after they finish, call buy_connect_status with the pending_id to confirm. Merchants that need no login (e.g. Agentcard Flights) come back ready immediately. Use this instead of buy_link_merchant for hosted-login merchants. This tool pairs only with buy_connect_status and only tracks logins it started itself; a login link handed out by the conversational buy tool has no pending_id and is verified inside that same buy conversation (the user replies there, e.g. "done — I logged in").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merchant | Yes | merchant slug (e.g. doordash) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Outcome: 'pending' (hosted login started), 'ready'/'linked' (auto-link merchant — no login needed), or 'error'. | |
| message | Yes | Human-readable next step. | |
| loginUrl | No | URL the user must open to log in to the merchant. Absent for auto-link merchants. | |
| merchant | No | The merchant slug, present when an auto-link merchant needs no login. | |
| pendingId | No | Session id to pass to buy_connect_status. Absent for auto-link merchants. |