execute_in_app
Execute JavaScript code in React Native apps to inspect app state, run diagnostics, or perform REPL-style interactions with Hermes compatibility.
Instructions
Execute JavaScript code in the connected React Native app and return the result. Use this for REPL-style interactions, inspecting app state, or running diagnostic code. Hermes compatible: 'global' is automatically polyfilled to 'globalThis', so both global.REDUX_STORE and globalThis.REDUX_STORE work.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | JavaScript expression to execute in the app | |
| awaitPromise | No | Whether to await promises (default: true) | |
| maxResultLength | No | Max characters in result (default: 2000, set to 0 for unlimited). Tip: For large objects like Redux stores, use inspect_global instead or set higher limit. | |
| verbose | No | Disable result truncation. Tip: Be cautious - Redux stores or large state can return 10KB+. |