btc_sweep
Sweep an entire Bitcoin wallet balance to one address. Deduct fees from inputs and leave zero sats, supporting send-all or empty-wallet transfers.
Instructions
Sweep the entire Bitcoin balance to one address. Fee is deducted from the inputs — leaves 0 sats in the wallet. Use this whenever the user says 'send all', 'sweep', 'drain', 'empty wallet', or 'move everything' on Bitcoin.
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": {
"wallet_name": "<wallet_name>",
"address": "<address>"
},
"name": "btc_sweep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Destination Bitcoin address (bc1...) | |
| fee_rate | No | Optional fee rate in Sat/vB | |
| password | No | Password to decrypt mnemonic (if encrypted at rest) | |
| wallet_name | Yes | Name of the wallet | |
| password_file | No | Path to a local file containing the wallet password; keeps the password out of the conversation. Do not combine with password. |