在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用$pwd:
tool-webview-evaluate-script
// MCP webview_evaluate_script 호출 또는 앱 내 WebView에서 임의 JS 실행·결과 수신할 때 사용.
$ git log --oneline --stat
stars:5
forks:1
updated:2026年2月15日 12:12
SKILL.md
// MCP webview_evaluate_script 호출 또는 앱 내 WebView에서 임의 JS 실행·결과 수신할 때 사용.
React Native MCP 서버 전체 기능 검증 절차. 데모 앱 32개 스텝을 모두 순서대로 진행하면 MCP 내부 기능을 전부 검증한다. 클릭/탭은 query_selector → measure → tap(platform, x, y)으로 idb/adb 네이티브 터치 필수.
MCP evaluate_script 호출 또는 RN 앱 컨텍스트에서 임의 JS 실행할 때 사용.
Use when calling MCP take_screenshot or capturing device/simulator screen without app code.
MCP get_debugger_status 호출 또는 콘솔/네트워크 이벤트용 CDP 연결 여부 확인 시 사용.
Use when calling MCP take_snapshot or exploring RN component tree (Fiber) by type/uid.
| name | tool-webview-evaluate-script |
| description | MCP webview_evaluate_script 호출 또는 앱 내 WebView에서 임의 JS 실행·결과 수신할 때 사용. |
__REACT_NATIVE_MCP__.evaluateInWebViewAsync(webViewId, script). 앱은 해당 webViewId로 등록된 WebView ref를 찾고, WebView 내부에서 injectJavaScript로 스크립트를 실행한 뒤, 결과를 postMessage로 돌려준다.__REACT_NATIVE_MCP__.registerWebView(ref, id) 호출 필요(예: react-native-webview). Babel이 testID 있는 WebView에 ref·onMessage를 자동 주입하므로 앱에 MCP 전용 코드 없이 사용 가능.createWebViewOnMessage로 감싸져 있어야 함(Babel 자동 주입 또는 수동 적용).document.querySelector('button').click(), document.querySelector('h1').innerText 등.