Prepare an Aave V3 variable-debt repayment
prepare_aave_v3_repayPrepare variable-debt repayment with underlying tokens or sender-owned aTokens. Underlying repayment carries an exact ERC-20 approval and cleanup in one atomic plan; uint256 maximum requests all available debt.
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>",
"amount": "<amount>"
},
"name": "prepare_aave_v3_repay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Exact underlying ERC-20 address from the selected market's fixed major-reserve list | |
| amount | Yes | Positive repayment amount in base units; uint256 maximum requests all available variable debt (positive decimal integer) | |
| 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 | |
| on_behalf_of | No | Debt owner; defaults to sender (address) | |
| funding_source | No | Use underlying ERC-20 with a temporary exact Pool approval, or burn sender-owned aTokens with repayWithATokens | underlying |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| execution_plan_reference | No | artifact_reference; pass unchanged |