frida_hook_function
Hook specific functions to intercept, log, or modify calls and return values during runtime instrumentation.
Instructions
Hook a specific function to log calls, modify arguments, or change return values.
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": {
"session_id": "<session_id>",
"function": "<function>"
},
"name": "frida_hook_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| module | No | Module name (or null for main executable) | |
| function | Yes | Function name or address | |
| on_enter | No | JavaScript code to run on function entry | |
| on_leave | No | JavaScript code to run on function exit |