Prepare an Aave V3 collateral toggle
prepare_aave_v3_collateralPrepare setUserUseReserveAsCollateral for a supported fixed reserve. Disabling collateral can reduce health factor or revert when open debt needs it, so exact wallet simulation is mandatory.
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_id": "<chain_id>",
"sender": "<sender>",
"asset": "<asset>",
"use_as_collateral": "<use_as_collateral>"
},
"name": "prepare_aave_v3_collateral"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Exact underlying ERC-20 address from the selected market's fixed major-reserve list | |
| sender | Yes | Wallet that will execute the Aave action (address) | |
| chain_id | Yes | Chain of a fixed Aave V3 core market returned by get_aave_v3_markets | |
| use_as_collateral | Yes | True enables this supplied reserve as collateral; false disables it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| execution_plan_reference | No | artifact_reference; pass unchanged |