factor_lend_borrow
Borrow assets from Aave, Compound V3, Morpho, or Silo V2 through a Factor vault after supplying collateral.
Instructions
Borrow assets from a lending protocol (Aave, Compound V3, Morpho, or Silo V2) through a Factor vault. Requires collateral to be supplied first.
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": {
"vaultAddress": "<vaultAddress>",
"protocol": "<protocol>",
"amount": "<amount>"
},
"name": "factor_lend_borrow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to borrow in base units (wei) | |
| marketId | No | Morpho market ID (required for morpho) | |
| password | No | Wallet password if encrypted | |
| protocol | Yes | The lending protocol to borrow from | |
| debtAddress | No | Token address to borrow (required for aave, compoundV3, siloV2) | |
| vaultAddress | Yes | The vault contract address | |
| marketAddress | No | Market address (required for compoundV3 and siloV2) |