Import a wallet
import_walletReplaces the saved wallet with a wallet.yaml from the earnrate command line or earnrate.dev, when the user pastes or attaches one. Wallet files only: never statements or card numbers. If anything is already saved (cards, memberships or point values), it refuses unless replace is true: confirm with the user first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"yaml": "<yaml>"
},
"name": "import_wallet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yaml | Yes | The wallet.yaml text, as the user gave it. | |
| replace | No | true to replace what the wallet already holds, after the user confirms. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| cardIds | Yes | ||
| created | Yes | ||
| message | Yes | ||
| memberships | Yes |