Hook permission flags
hook_flagsTurn a list of Uniswap v4 hook permissions into the address flag mask a hook must be deployed at (mine a CREATE2 salt until address & 0x3fff == mask), or check whether an address matches.
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": {
"permissions": "<permissions>"
},
"name": "hook_flags"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | No | Optional: a candidate address to check against the mask | |
| permissions | Yes | Any of: beforeInitialize, afterInitialize, beforeAddLiquidity, afterAddLiquidity, beforeRemoveLiquidity, afterRemoveLiquidity, beforeSwap, afterSwap, beforeDonate, afterDonate, beforeSwapReturnDelta, afterSwapReturnDelta, afterAddLiquidityReturnDelta, afterRemoveLiquidityReturnDelta |