Navigate
navigateControl React Navigation and Expo Router from outside the app: inspect the current stack, go to routes by name, push cards, go back, or reset navigation state.
Instructions
Read or drive react-navigation (and Expo Router) from outside the app. stack reports the current navigation state — one line per nesting level with the focused route marked. navigate/push go to a route by name (push always adds a new card, navigate reuses an existing one), back/pop/pop_to_top unwind it, reset replaces the whole state via resetRoot. Every mutating action reports the resulting stack. The navigation container ref is found by walking the React tree, so no app-side setup is needed; it is cached on globalThis.RNE_NAV until the next reload. An unknown route name comes back as react-navigation's own "was not handled by any navigator" message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| count | No | ||
| state | No | ||
| action | Yes | ||
| params | No |