frida_intercept_objc_method
Analyze Objective-C method calls by hooking and logging invocations with arguments. Specify target class, method, and duration for capture.
Instructions
Hook a specific ObjC method via Interceptor and log invocations.
class_name: e.g. 'NSFileManager'.
method_name: e.g. '- contentsOfDirectoryAtPath:error:'.
Captures arguments (up to 6 beyond self/sel) on each call for
duration_seconds.
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": {
"target": "<target>",
"class_name": "<class_name>",
"method_name": "<method_name>"
},
"name": "frida_intercept_objc_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| class_name | Yes | ||
| method_name | Yes | ||
| duration_seconds | No |