refresh_screen
Bundle and render an Expo/React Native app headlessly to return a PNG screenshot; re-bundle after code edits or set reload=false to capture the current state.
Instructions
Bundles the Expo / React Native project (no emulator, phone or browser), renders it headlessly and returns a PNG screenshot of the screen. Call first; call again after editing code (re-bundles and restarts the app). Pass reload=false to just re-capture the current state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry | No | Entry file relative to the project, e.g. App.tsx | |
| scale | No | PNG pixel scale (default 1.5) | |
| width | No | Screen width in dp (default 390) | |
| height | No | Screen height in dp (default 844) | |
| reload | No | Re-bundle and restart the app (default true) | |
| projectPath | No | Expo project directory (default: EXPO_PROJECT env or server cwd) |