hook_diff
Compare two Hook versions to identify changes in imports, exports, HookOn, size, instructions, and security-sensitive capabilities like emit or foreign-state write.
Instructions
Compare two Hook versions (before/after an upgrade): imports/exports added or removed, HookOn changes, size/instruction deltas, and any newly-gained security-sensitive capability (emit, foreign-state write, hook_again, signature verify). Offline.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hook_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| afterHookOn | No | ||
| afterWasmHex | No | ||
| beforeHookOn | No | ||
| beforeWasmHex | No | ||
| afterWasmBase64 | No | ||
| beforeWasmBase64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| exports | No | ||
| firesOn | No | ||
| imports | No | ||
| summary | No | ||
| loopDelta | No | ||
| guardDelta | No | ||
| byteSizeAfter | No | ||
| byteSizeDelta | No | ||
| byteSizeBefore | No | ||
| instructionDelta | No | ||
| newSensitiveCapabilities | No |