frida_run_on_thread
Execute JavaScript code on a specific thread within a target process using thread ID.
Instructions
Execute JavaScript on a specific thread in the target process.
Uses Process.runOnThread() to schedule execution.
target: process name or pid (string).
thread_id: OS thread id (from frida_enumerate_threads).
js_code: JavaScript code to execute on the thread.
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>",
"thread_id": "<thread_id>",
"js_code": "<js_code>"
},
"name": "frida_run_on_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| thread_id | Yes | ||
| js_code | Yes |