trace_api
Trace API calls by hooking all exports that match a specified module!glob pattern for dynamic instrumentation.
Instructions
frida-trace style: hook all exports matching module!glob (e.g. kernel32!CreateFile*).
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>",
"pattern": "<pattern>"
},
"name": "trace_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| session_id | Yes |