frida_compile_script
Compile a Frida script to bytecode for a specific process without loading it. Supports qjs or v8 runtime and returns base64-encoded bytecode for later injection.
Instructions
Compile a script to bytecode without loading it.
Args: pid: Target process PID (must have active session). source: JavaScript source code to compile. runtime: Script runtime — "qjs" (default, no Java/ObjC) or "v8" (full runtime with Java/ObjC bridge).
Returns: Base64-encoded bytecode.
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": {
"pid": "<pid>",
"source": "<source>"
},
"name": "frida_compile_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| source | Yes | ||
| runtime | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||