Build a vault withdrawal
build_vault_withdrawWithdraws amount USDG (or all of it, the default) from a vault back to wallet. All of it redeems every share, leaving no dust behind.
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": {
"vault": "<vault>",
"wallet": "<wallet>"
},
"name": "build_vault_withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | Yes | The vault's address or name | |
| amount | No | Optional: how much USDG, or "all" (default all) | |
| wallet | Yes | The address that will sign and send the transactions |