Prepare Uniswap V4 liquidity withdrawal
prepare_uniswap_v4_remove_liquidityRemove liquidity and take principal plus fees to the sender. Optional burn:true requires liquidity:0 and withdraws the entire NFT with minima applied to the full position. Requires exact pool currencies and hook data; uint128 minima bound principal outputs.
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>",
"deadline": "<deadline>",
"pool_id": "<pool_id>",
"token0": "<token0>",
"token1": "<token1>",
"fee": "<fee>",
"tick_spacing": "<tick_spacing>",
"token_id": "<token_id>",
"liquidity": "<liquidity>",
"amount0_min": "<amount0_min>",
"amount1_min": "<amount1_min>"
},
"name": "prepare_uniswap_v4_remove_liquidity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | Yes | ||
| burn | No | ||
| hooks | No | address | |
| sender | Yes | address | |
| token0 | Yes | address | |
| token1 | Yes | address | |
| pool_id | Yes | bytes32 hex | |
| chain_id | Yes | ||
| deadline | Yes | decimal integer | |
| token_id | Yes | decimal integer | |
| hook_data | No | hex bytes | 0x |
| liquidity | Yes | decimal integer | |
| amount0_min | Yes | decimal integer | |
| amount1_min | Yes | decimal integer | |
| tick_spacing | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| execution_plan_reference | No | artifact_reference; pass unchanged |