factor_hl_add_isolated_margin
Adjust isolated margin on a HyperEVM perpetual position by adding or withdrawing USD via a signed vault-agent EIP-712 action.
Instructions
Adjust isolated margin (positive = add, negative = withdraw) on a HL perp position via an off-chain EIP-712 action signed by the vault agent. HyperEVM (chain 999) only.
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>",
"perp": "<perp>",
"isLong": "<isLong>",
"deltaUsd": "<deltaUsd>"
},
"name": "factor_hl_add_isolated_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| perp | Yes | Perp symbol. | |
| vault | Yes | Vault contract address. | |
| isLong | Yes | Direction of the position to top up. | |
| deltaUsd | Yes | USD margin delta — positive to add, negative to withdraw. | |
| password | No | Wallet password if encrypted. |