withdraw_erc4626
Withdraw underlying tokens from any ERC-4626 vault. Specify amount or use 'max' for full withdrawal.
Instructions
Withdraws assets from any ERC-4626 compliant vault. Use "max" to attempt a full withdrawal (vault may still limit to available liquidity).
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>",
"asset": "<asset>",
"amount": "<amount>"
},
"name": "withdraw_erc4626"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Underlying ERC-20 token address. | |
| vault | Yes | ERC-4626 vault contract address to withdraw from. | |
| amount | Yes | Amount to withdraw. Use "max" for the full balance. | |
| chain_id | No | Chain ID. Default: 1 (Ethereum mainnet). |