User: "Buy me a $30 book on Amazon"
Agent:
1. ledger_status({ userId: "user_xxx" })
→ { canSpend: true, balance: 5000, verificationStatus: "approved" }
2. ledger_card({
action: "create",
purpose: "Buy book on Amazon",
type: "single",
maxAmount: 3500
})
→ { cardId: "card_abc", lastFour: "4242", status: "active" }
3. ledger_card({
action: "details",
cardId: "card_abc",
summary: "Purchasing book on Amazon"
})
→ { pan: "4111111111114242", cvv: "123", expiry: "12/27", billingAddress: {...} }
4. [Agent navigates to Amazon, adds book to cart, enters card details at checkout]
5. ledger_transactions({ cardId: "card_abc" })
→ { transactions: [{ amount: 2999, merchantName: "AMAZON.COM", status: "completed" }] }
Agent: "Done! I bought the book for $29.99. Your card has been automatically closed."