Prepare a withdrawal
build_withdrawReturns the unsigned transaction to withdraw USDC that is not in active loans. Use "max" for everything available. as_musdc receives vault shares and skips the 0.25% withdrawal fee.
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": {
"amount_usdc": "<amount_usdc>",
"lender": "<lender>"
},
"name": "build_withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lender | Yes | ||
| as_musdc | No | ||
| amount_usdc | Yes |