script_load
Compiles and loads a JavaScript Frida script into a target session for dynamic instrumentation, enabling hooking and API access.
Instructions
Compile + load a Frida script (JavaScript) into a session.
Args:
session: session id
name: a name to look the script up by in subsequent calls
source: the JavaScript source. Frida injects V8 into the
target process; standard Interceptor /
Java.perform / ObjC.classes APIs are
available inside the script.
Returns::
{"status": "OK", "session_id": "...", "script": "...", "scripts_loaded": [...]}
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": "<session>",
"name": "<name>",
"source": "<source>"
},
"name": "script_load"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | ||
| name | Yes | ||
| source | Yes |