get_wallet_link
The user's hosted wallet, as one shareable URL. Opens their Agentcard wallet in the browser: every card in one place, apply for an Agentcard card (identity verification runs right in the page). Mint it whenever the user needs a browser step (seeing cards, finishing verification when in-chat photos fail) and send them the URL. To ADD the user's own card, pass purpose "add_card": the link then opens their Agentcard vault card form directly (any card, typed once, locked with their passkey or master password, never seen by Agentcard) and works on personal logins too. Pass merchant + amount_cents to open the wallet ON the payment-approval sheet (the user picks a card and approves that exact charge) instead of the card list. Short-lived: how long it works is in expiresIn (the exact moment is in expiresAt). Say expiresIn to the user, never a date, a clock time or a time zone, and mint a fresh one when it expires. The wallet link only works for app connections (OAuth).
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": "get_wallet_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | No | "wallet" (default) opens the hosted wallet. "add_card" opens the vault card form so the user can put their own card on file; single-use, for as long as expiresIn says. | |
| merchant | No | Merchant name shown on the payment-approval sheet (with amount_cents). | |
| amount_cents | No | Amount in cents. When present, the link opens on the payment-approval sheet for this charge. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The hosted wallet URL to share with the user. | |
| kind | No | purpose add_card only: how the vault link signs the user in. "connected" = a one-time code to their own phone or email; "handoff" = directly; "open" = passkey setup or passkey sign-in. | |
| message | Yes | Ready-to-send sentence containing the URL. | |
| sandbox | No | True when the connection is in test mode. | |
| expiresAt | No | ISO time the link stops working. | |
| expiresIn | No | How long the link works from now, in words ("about 24 hours"), from expiresAt. Say this to the user, never expiresAt. |