morpho_prepare_withdraw
Prepare a withdraw from a Morpho vault. Returns a ready-to-sign transactions array. Supports "max" for full withdrawal. A vault-share approval transaction may come first and is listed in requirements.
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": {
"chain": "<chain>",
"vaultAddress": "<vaultAddress>",
"userAddress": "<userAddress>",
"amount": "<amount>"
},
"name": "morpho_prepare_withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| amount | Yes | Token amount in human-readable decimals (e.g., "1000.50"), or "max" for full withdrawal | |
| userAddress | Yes | ||
| vaultAddress | Yes |