Skip to main content
Glama

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
NameRequiredDescriptionDefault
expressionYesJavaScript expression to execute in the app
awaitPromiseNoWhether to await promises (default: true)
maxResultLengthNoMax 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.
verboseNoDisable result truncation. Tip: Be cautious - Redux stores or large state can return 10KB+.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/igorzheludkov/metro-logs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server