Build a removal of liquidity
hookr_build_remove_liquidityBuilds the removal of a share of a position's liquidity to the wallet that owns it, each amount out floored at the pool's price now less the slippage and simulated from the wallet: name tokenId for a position on Uniswap's PositionManager (the whole position burns it, as the positions page does), or poolId for the launch's own position on a pool the wallet launched, which goes through the Launcher's withdraw once its principal lock has ended. Removing is never gated, and it returns ok with the call and its gas, or refused or unknown with the reason and no calls.
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": {
"wallet": "<wallet>"
},
"name": "hookr_build_remove_liquidity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poolId | No | A pool the wallet launched through Hookr: its launch's own position, which the Launcher holds for the wallet. Name tokenId or poolId, not both. | |
| wallet | Yes | The wallet that signs and is paid. | |
| percent | No | The share of the position's liquidity to take out, a whole percent (default 100). 100 on a PositionManager position burns it; its fees come out with the principal. | |
| tokenId | No | A position on Uniswap's PositionManager, by its token id. Name tokenId or poolId, not both. | |
| slippageBps | No | How far below what the pool's price gives now each amount out may land, in basis points (default 50). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | Yes | Unsigned calls, in the order to send them. | |
| reason | No | Why the answer is not ok, in words an agent can act on. | |
| status | Yes | ok, refused or unknown. | |
| removes | No | ||
| deadline | No | ||
| expected | No | What the pool's price gives now for the liquidity taken out. | |
| position | No | ||
| simulated | No | What the launcher's withdraw pays in the simulation. | |
| minimumOut | No |