eval_script
Execute custom Frida JavaScript inside a running game process to probe engine internals or debug issues when built-in tools are insufficient; returns JSON-serializable results.
Instructions
在游戏进程内执行任意 Frida JS 代码 —— 应急逃生舱。
与 AiMod 的 eval_script 同定位:当预置工具不够用时, 直接下发 JS 探测。
可用全局对象:mod / api / funcs / hooks(IL2CPP 侧),
以及 monoFuncs 与 BE(Mono 侧的已绑定导出、以及当前选中的后端对象)。
后者是排查 Mono 问题的必需品:例如
"typeof monoFuncs.mono_field_get_offset" 能直接看出某个导出有没有绑上,
不必去复刻绑定逻辑。
返回值必须是可 JSON 序列化的(字符串/数字/布尔/数组/普通对象)。
示例: "Process.arch" "mod.base.add(0x1000).toString()" "(function(){ return Process.enumerateModules().length; })()" "typeof monoFuncs.mono_get_root_domain"
Args: code: JS 表达式或语句块。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |