Ceraph
v1.2.2MCP server for agent-driven React Native and Expo development and mobile testing
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
rn_build_ios
Advanced unmanaged iOS build diagnostic. A bare call starts nothing and steers to `ceraph_start({ rebuild: true })`; use `app_launch({ rebuild: true })` only for rebuild-and-open. Set `unmanaged:true` only when you accept responsibility for the build process. Explicit Release build-only requests are supported. For Ceraph testing, use the project's Debug development configuration (name must contain Debug, case-sensitive). Before testing a build without the development integration, explain the loss of Ceraph's in-app connection, hooks, and native keep-awake and obtain approval unless the user ex…
| Parameter | Type | Description |
|---|---|---|
clean | boolean | Request a clean build. For a headed Expo build this deletes and regenerates only `ios/`; bare React Native and headless builds preserve that directory. |
configuration | string | iOS build configuration (default Debug). |
device | string | Physical-device or simulator identifier, or simulator name. Omit to use the default target. Ignored when headless is true. |
headless | boolean | Build and launch on a simulator without opening Simulator.app. macOS only. Defaults to true when CERAPH_TARGET=headless; pass false to override the env for this call. |
port | number | Metro port (default 8081). |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
scheme | string | Exact iOS Xcode scheme. |
unmanaged | boolean | Explicit opt-in to the advanced build-only primitive. Without exactly true, no build starts and the result steers to ceraph_start. |
rn_build_android
Advanced unmanaged Android build diagnostic. A bare call starts nothing and steers to `ceraph_start({ platform: 'android', rebuild: true })`. Set `unmanaged:true` only when you accept responsibility for the build process. `clean:true` may regenerate the Android native project for Expo apps.
| Parameter | Type | Description |
|---|---|---|
clean | boolean | Request a clean Android build; Expo projects may regenerate their native project. |
device | string | Exact adb serial, such as emulator-5554. |
port | integer | Metro development-server port for the build. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
target | string | Android target kind for the build or suggested managed start. |
unmanaged | boolean | Must be true to run this build-only tool directly; otherwise it recommends managed ceraph_start. |
variant | string | Exact debuggable Gradle variant, such as developmentDebug. |
rn_metro_start
Start or reuse this project's Metro dev server. Auto-detects Expo vs bare React Native. Monitors console output for runtime errors and warnings. To bring everything up in one call (Metro + build + verify), use ceraph_start.
| Parameter | Type | Description |
|---|---|---|
clear | boolean | Clear Metro bundler cache on start |
force | boolean | Restart this project's Metro even when it is already running |
port | number | Port for Metro bundler (default: 8081) |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
resetCache | boolean | Alias for clear |
ceraph_start
FIRST call for any app-driving session: the one-call bring-up that reaches a ready-to-test state. Starts or reuses Metro, the app, and the platform automation driver (WebDriverAgent on iOS or UiAutomator2 on Android), then verifies the selected exact runtime is ready. Runs only the steps that aren't already done and stops at the first failure with its remediation. Call this before ceraph_snapshot / screen_* taps / screenshots / typing — prefer it over calling rn_metro_start / rn_build_ios / rn_build_android / rn_wda_start / ceraph_doctor separately. Works against iOS or Android devices, iOS…
| Parameter | Type | Description |
|---|---|---|
avd | string | Exact Android Virtual Device name to boot for emulator or no-window targets. |
bundleId | string | Usually OMIT — Ceraph detects the project's iOS bundle ID or Android application ID. Pass only an intentional build-variant override (e.g., com.acme.myapp.dev). An explicit value is authoritative fo… |
clean | boolean | Run `npx expo prebuild --clean` before a build, regenerating the selected platform's native folder. DESTRUCTIVE whenever this run resolves to a headed Expo build (a simulator or device — what 'auto'… |
configuration | string | iOS development build configuration; defaults to Debug. |
device | string | Exact runtime to pin: an Android adb serial, an Apple device/simulator UDID, or an iOS simulator name (e.g. "iPhone 17"). A connected physical identifier auto-resolves its platform; use `target` to ch… |
expectedNetwork | string | Optional WiFi SSID the user expects the laptop (and phone) to be on. Mismatch is a warning, not a stop. |
focusWindow | boolean | Set false to skip Ceraph's Simulator/emulator window activation for this bring-up. The app still opens inside its runtime. Does not affect physical-device keep-awake. |
platform | string | Mobile platform to drive. An exact connected physical device or target 'device' auto-resolves it; otherwise omit to use iOS on macOS and Android on Windows/Linux. target 'simulator'/'headless' implies… |
port | number | Port for Metro bundler (default: 8081) |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
rebuild | boolean | Rebuild and reinstall the app even when Ceraph considers the installed build current. Use this when the installed native app is stale or a normal start reports a native-module launch failure. This pre… |
requiredEnv | array | Env var names the app under test requires. Each must be set + non-empty for doctor to pass. |
scheme | string | Exact iOS Xcode build scheme. |
signalPort | integer | Signal-channel port for this runtime instance. Usually omit. When two agents drive the same project concurrently, give each exact device/simulator instance its own Metro `port` and `signalPort` in a s… |
target | string | Which target kind to drive. On iOS, 'auto' (default) uses a USB-connected device unless a simulator session is already active; otherwise it selects and boots an available simulator when needed. A Wi-F… |
variant | string | Android only: exact debuggable Gradle application variant, such as developmentDebug. Omit for the conventional debug variant or when the build exposes only one debuggable variant. |
wifi | boolean | Permit the exact physical device in `device` to connect over Wi-Fi. Requires target 'device' and an exact device identifier. Set true only when the user explicitly approved Wi-Fi device access; never… |
rn_get_errors
Return all captured errors from build and runtime. Includes structured build errors (file, line, column, message), runtime JS errors (message, stack trace), and warnings.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
rn_get_console
Return recent app console output, including shim-forwarded output when Metro is externally owned, optionally filtered by log level.
| Parameter | Type | Description |
|---|---|---|
level | string | Filter by log level (default: all) |
lines | number | Number of recent lines to return (default: 50) |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
waitMs | integer | Wait up to this many milliseconds for matching output when the current buffer is empty (default: 0). Resolves immediately on arrival. |
rn_check_prebuild
Check whether recent changes require rebuilding the app before testing, without starting a build. Reports the reasons and any checks that could not be completed.
| Parameter | Type | Description |
|---|---|---|
bundleId | string | Exact installed bundle/package to inspect; defaults to the project identifier. |
configuration | string | iOS configuration (default Debug). |
platform | string | Defaults to the active Ceraph platform. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
scheme | string | iOS scheme to compare with the last successful build. |
variant | string | Android variant to compare with the last successful build. |
screen_tap
Tap by a `ref` from ceraph_snapshot, snapshot bounds, or explicit coordinates. Prefer a stable `ref`; use `index` only when a non-unique accessibility ref matches multiple elements. Use bounds for synthetic accessibility refs. Screenshot-derived coordinate taps are best-effort.
| Parameter | Type | Description |
|---|---|---|
bounds | object | Snapshot bounds in device points. Taps their center. Use this for synthetic or non-unique accessibility refs that cannot be resolved reliably by identity. |
coordinateSource | string | Coordinate space of x/y only; do not pass it with ref or bounds. Defaults to 'device', including ceraph_snapshot bounds. Use 'screenshot' only for a point measured from an image; screenshot-derived co… |
includeOffScreen | boolean | Only meaningful with a disambiguated ref: match the occurrence set from an includeOffScreen snapshot. Defaults to false. |
index | integer | Explicit zero-based match choice. Mutation tools refuse multiple matches when omitted; waits retain any-match semantics. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ref | string | Preferred element handle from ceraph_snapshot. Supports injected testIDs, accessibility ids/labels, and disambiguated `<id>::<N>` refs. Synthetic `ax:<n>` refs cannot be resolved; use bounds instead. |
x | number | X coordinate to tap (required with y when ref is omitted) |
y | number | Y coordinate to tap (required with x when ref is omitted) |
ceraph_snapshot
Return a structured snapshot of the CURRENT screen — the kind of accessibility-tree view the web exposes, for React Native: a tree of UI elements with roles (button/textInput/text/image/scrollView/switch/view), names, values, on-screen bounds (device points), live state (`onScreen`/enabled/focused), and a stable `ref` per element. `onScreen` means the node intersects the device viewport; it does not promise that every pixel is unobscured in a screenshot. To ACT on an element, ordinarily call screen_tap with its `ref`; use screen_tap_and_verify only when you also have an explicit postconditio…
| Parameter | Type | Description |
|---|---|---|
includeOffScreen | boolean | Include elements with zero / off-screen bounds. Default false (only on-screen, actionable elements). |
includeStyles | boolean | Include bounded render-time style inputs for uniquely matched visible elements. Use after styling, layout, typography, or design-system changes. Default false. |
maxDepth | integer | Usually omit: Ceraph then returns the complete visible logical tree. Use only to cap a response you already know is unwieldy; root nodes are depth 0 and meta.depth reports whether nodes were omitted. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
screen_swipe
Swipe on the current mobile screen. Direction is up/down/left/right; optional from-point and distance default to a center-screen swipe of ~60% of the relevant axis. Coordinates are device-space by default — keep it that way and pass ceraph_snapshot `bounds` directly. Only pass coordinateSource: 'screenshot' if `from` was measured off a screenshot, and treat that as best-effort: the delivered image is usually downscaled by a factor Ceraph cannot observe.
| Parameter | Type | Description |
|---|---|---|
direction * | string | Direction of the swipe gesture. |
coordinateSource | string | Coordinate space of from: screenshot pixels or device points. Defaults to device. |
distancePx | number | Swipe distance in points. |
durationMs | number | Swipe duration in ms. |
from | object | Optional swipe start point. Defaults to screen center. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
screen_scroll_to
Repeatedly swipe until an element is actually on-screen (PREFER its `ref` from ceraph_snapshot; else text/accessibilityLabel). Returns without tapping. Default direction is 'up' (swipe up — reveals content below the fold), max 10 swipes. Pass direction: 'down' to scroll backward toward the top.
| Parameter | Type | Description |
|---|---|---|
accessibilityLabel | string | Native accessibility label to match when a stable snapshot ref is unavailable. |
direction | string | Swipe direction: up reveals content below, down reveals content above. Defaults to up. |
distancePx | number | Positive swipe distance in device points. |
includeOffScreen | boolean | Only meaningful with a disambiguation `ref` (`<id>::<N>`): enumerate off-screen occurrences too when resolving the ordinal. Defaults to false — match it to the snapshot the ref came from (pass true… |
index | integer | Explicit zero-based match choice. Mutation tools refuse multiple matches when omitted; waits retain any-match semantics. |
maxSwipes | number | Maximum swipe attempts before stopping; defaults to 10. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ref | string | PREFERRED: target the element by its `ref` from ceraph_snapshot (its stable handle — the injected testID, a non-`cer_` accessibility id, or its accessibility label). Resolves the element's identity… |
text | string | Visible native text to match when a stable snapshot ref is unavailable. |
type | string | A platform-normalized native element-type filter (e.g. "Button", "TextField") — NOT the ceraph_snapshot `role`. Ceraph normalizes Android UiAutomator2 nodes into this shared type vocabulary. To act… |
screen_long_press
Long-press an element (PREFER its `ref` from ceraph_snapshot; else text/accessibilityLabel). Default duration is 1000ms.
| Parameter | Type | Description |
|---|---|---|
accessibilityLabel | string | Native accessibility label to match when a stable snapshot ref is unavailable. |
durationMs | number | Long-press duration in milliseconds; defaults to 1000. |
includeOffScreen | boolean | Only meaningful with a disambiguation `ref` (`<id>::<N>`): enumerate off-screen occurrences too when resolving the ordinal. Defaults to false — match it to the snapshot the ref came from (pass true… |
index | integer | Explicit zero-based match choice. Mutation tools refuse multiple matches when omitted; waits retain any-match semantics. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ref | string | PREFERRED: target the element by its `ref` from ceraph_snapshot (its stable handle — the injected testID, a non-`cer_` accessibility id, or its accessibility label). Resolves the element's identity… |
text | string | Visible native text to match when a stable snapshot ref is unavailable. |
type | string | A platform-normalized native element-type filter (e.g. "Button", "TextField") — NOT the ceraph_snapshot `role`. Ceraph normalizes Android UiAutomator2 nodes into this shared type vocabulary. To act… |
screen_press_key
Press a hardware/system button: back, home, volumeUp, volumeDown, or lock. Back uses Android's system key and iOS navigation fallback.
| Parameter | Type | Description |
|---|---|---|
key * | string | Native device key to press; support depends on the selected platform. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
screen_open_url
Open a URL / deep link on the device to jump straight to a screen — useful for testing your app's deep-link routes (e.g. myapp://product/42). If the scheme isn't registered in the app under test, the result carries an actionable message explaining the app needs a rebuild to pick up the scheme.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL / deep link to open, e.g. myapp://product/42 |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
screen_screenshot
Capture a screenshot of the current mobile screen through the active automation driver. Returns the PNG as a viewable image. Optional saveTo also saves a local project-relative PNG without overwriting an existing file.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
saveTo | string | Local-only project-relative PNG destination, e.g. .ceraph/recorded-runs/screenshot.png. Must not already exist. |
screen_wait_for
Poll the active automation driver's native source tree until an element matching the query is on-screen (or, if disappear is true, until it is no longer on-screen). This checks accessibility geometry, not screenshot pixels. Default timeout is 5s.
| Parameter | Type | Description |
|---|---|---|
accessibilityLabel | string | Native accessibility label to match when a stable snapshot ref is unavailable. |
disappear | boolean | True to wait until the matched element is no longer on-screen; defaults to false. |
includeOffScreen | boolean | Only meaningful with a disambiguation `ref` (`<id>::<N>`): enumerate off-screen occurrences too when resolving the ordinal. Defaults to false — match it to the snapshot the ref came from (pass true… |
index | integer | Explicit zero-based match choice. Mutation tools refuse multiple matches when omitted; waits retain any-match semantics. |
pollIntervalMs | number | Interval in milliseconds between native element checks. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ref | string | PREFERRED: target the element by its `ref` from ceraph_snapshot (its stable handle — the injected testID, a non-`cer_` accessibility id, or its accessibility label). Resolves the element's identity… |
text | string | Visible native text to match when a stable snapshot ref is unavailable. |
timeoutMs | number | Maximum wait in milliseconds; defaults to 5000. |
type | string | A platform-normalized native element-type filter (e.g. "Button", "TextField") — NOT the ceraph_snapshot `role`. Ceraph normalizes Android UiAutomator2 nodes into this shared type vocabulary. To act… |
screen_tap_and_verify
Tap an element and assert an explicit postcondition in one call. PREFER the element's `ref` from ceraph_snapshot; use ordinary screen_tap for a tap without a postcondition. Finds the target, taps its center, and asserts the follow-up selector is on screen — all in one logical step. The result reports whether the optimized path was used (`batched`).
| Parameter | Type | Description |
|---|---|---|
verifySelector * | object | Required follow-up assertion. The tool reports whether this selector is on-screen in `verifyResult` after the tap. Use screen_tap when no assertion is needed. |
accessibilityLabel | string | Native accessibility label to match when a stable snapshot ref is unavailable. |
includeOffScreen | boolean | Only meaningful with a disambiguation `ref` (`<id>::<N>`): enumerate off-screen occurrences too when resolving the ordinal. Defaults to false — match it to the snapshot the ref came from (pass true… |
index | integer | Explicit zero-based match choice. Mutation tools refuse multiple matches when omitted; waits retain any-match semantics. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ref | string | PREFERRED: target the element by its `ref` from ceraph_snapshot (its stable handle — the injected testID, a non-`cer_` accessibility id, or its accessibility label). Resolves the element's identity… |
text | string | Visible native text to match when a stable snapshot ref is unavailable. |
type | string | A platform-normalized native element-type filter (e.g. "Button", "TextField") — NOT the ceraph_snapshot `role`. Ceraph normalizes Android UiAutomator2 nodes into this shared type vocabulary. To act… |
verifyTimeoutMs | integer | Maximum time to wait for the post-tap selector, in milliseconds. Returns as soon as the postcondition is observed; defaults to 3000. |
screen_type_into_field
Compound primitive: focus an input field (PREFER its `ref` from ceraph_snapshot; else text/accessibilityLabel/type) and type into it. The result reports whether the optimized focus path was used (`batched`). Set `clearFirst: true` to clear an existing value before typing — off by default so we never silently overwrite form state. A successful Android call can set `dismissKeyboardAfter: true` to dismiss the software keyboard and verify it is no longer shown. A successful key dispatch is postcondition-checked against field value or focused edit state; phase timings are returned for latency dia…
| Parameter | Type | Description |
|---|---|---|
fieldQuery * | object | Query identifying the input field to focus. Prefer the snapshot `ref`; `type` is a platform-normalized native type filter, not the snapshot `role`. |
text * | string | Text to type into the focused field. |
clearFirst | boolean | When true, clear the field's current value before typing. Defaults to false. |
dismissKeyboardAfter | boolean | Android only. When true, dismiss the software keyboard after successful typing and verify it is no longer shown. Defaults to false. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
screen_tap_chain
Compound primitive: tap a sequence of elements in one optimized call. Each query resolves against the same screen state. If any query fails to resolve, the chain stops and ZERO gestures are sent (we never partial-tap an intent). On bulk-action failure, Ceraph may use individual taps (`batched: false`). Use only for controls that are simultaneously on-screen and whose layout will not change between taps; any navigation or menu re-render needs separate taps and fresh snapshots.
| Parameter | Type | Description |
|---|---|---|
queries * | array | Ordered list of element queries to tap. Resolved against one screen state — don't use this for sequences that require re-rendering between taps. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
app_launch
Start, open, relaunch, or incrementally rebuild this project's iOS or Android app. With no bundleId—or when bundleId matches this project—starts/reuses Metro, connects the Expo dev client, and verifies that this project's JS bundle loaded. A physical iPhone Expo dev client may report reduced-confidence readiness when exact in-app confirmation is unavailable; other targets remain strict. It does not start or stop the platform automation driver or keep-awake service. Set rebuild:true only when the user explicitly asks for a native rebuild; it uses the managed build/install path without provi…
| Parameter | Type | Description |
|---|---|---|
avd | string | Exact Android Virtual Device name to boot when needed. |
bundleId | string | Omit for this project; pass another iOS bundle ID or Android package ID for a plain native launch |
device | string | Exact runtime id (Android adb serial or Apple UDID). |
platform | string | Mobile platform; emulator/no-window imply Android, while simulator/headless imply iOS. |
port | number | Metro port for this project launch (default: current project port or 8081) |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
rebuild | boolean | Incrementally rebuild and install this project before opening it. Use only when the user explicitly asks to rebuild; it does not run the automation driver, keep-awake, doctor, or testing postflight. A… |
restart | boolean | Terminate the existing app process before opening it (default: false) |
target | string | Launch target; omit for CERAPH_TARGET/auto policy |
variant | string | Android only: exact debuggable Gradle application variant, such as developmentDebug. |
app_terminate
Terminate an app by its iOS bundle ID or Android package ID on the active exact runtime. On a real iOS device, terminating the app under test keeps WebDriverAgent available for subsequent commands; the screen may show WDA's runner until app_activate or ceraph_start relaunches the app. iOS Simulator and Android runs do not need this iOS auto-lock safeguard.
| Parameter | Type | Description |
|---|---|---|
bundleId * | string | Exact iOS bundle ID or Android package ID of the app to terminate. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
app_activate
Bring an app to the foreground without a cold restart on the active exact runtime. Uses WebDriverAgent on iOS or an exact-serial Android activity launch.
| Parameter | Type | Description |
|---|---|---|
bundleId * | string | Exact iOS bundle ID or Android package ID of the app to activate. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
app_list_installed
List apps installed on the active exact mobile runtime. Uses Apple device/simulator tooling on iOS or exact-serial package-manager data on Android.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
app_info
Return the foreground app's identity and name on the active exact runtime. Android also reports its activity.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
device_ensure_awake
Ensure the active iOS or Android runtime is awake and request keyguard dismissal. Returns a structured result with remediation guidance when the runtime cannot be made ready.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
device_set_orientation
Request portrait or landscape through the active automation driver and verify both the device and active app's resulting orientation. Ceraph does not override the app's supported-orientation policy.
| Parameter | Type | Description |
|---|---|---|
orientation * | string | Requested orientation; the app must support it. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ceraph_doctor
Run the available platform setup checks before driving the app: exact runtime connected, automation driver reachable, app installed, required env vars present, plus connectivity checks available for that platform. Returns a structured result — when ok: false, follow each finding's remediation and DO NOT attempt to fix environment issues by editing source code. To bring everything up in one call (Metro + build + verify), use ceraph_start.
| Parameter | Type | Description |
|---|---|---|
bundleId | string | Usually omit — Ceraph detects the project's iOS bundle ID or Android package ID. Pass an intentional build-variant override. |
device | string | Exact runtime id or adb serial. |
expectedNetwork | string | Optional WiFi SSID the user expects the laptop (and phone) to be on. Mismatch is a warning, not an error. |
platform | string | Platform to diagnose; omit to use the selected project runtime. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
requiredEnv | array | Env var names the app under test requires. Each must be set + non-empty. |
target | string | Physical or virtual runtime kind to diagnose on the selected platform. |
variant | string | Android only: exact debuggable Gradle application variant, such as developmentDebug. |
rn_sync_camera_registry
Refresh Ceraph camera fixtures after images or videos were added, removed, or changed manually under `.ceraph/`. The filename stem is the key used by `<CeraphCamera mediaKey>`. The camera fixture tools refresh their own writes, so call this only after manual file changes or a git update. Returns the available image and video keys.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ceraph_add_camera_image
Add a JPEG, PNG, WebP, or HEIC camera fixture up to 5 MB. Pass the image as base64 or a data URI with a lowercase, hyphen-separated `mediaKey` used by `<CeraphCamera mediaKey>`. An existing key is preserved unless `overwrite: true` is set. Returns the key, format, replacement status, and size. Fixtures are development-only; production builds use the real camera and exclude test media.
| Parameter | Type | Description |
|---|---|---|
imageBase64 * | string | Base64-encoded image payload. A `data:image/...;base64,...` URI prefix is accepted and stripped automatically. |
mediaKey * | string | Lowercase + hyphen-separated stem (e.g. `profile`, `id-card`, `handwriting-sample-1`). Becomes both the filename stem AND the value devs pass to `<CeraphCamera mediaKey>`. |
contentType | string | Optional MIME hint (e.g. `image/jpeg`). If it differs from the detected format, the tool returns a warning and uses the detected format. |
overwrite | boolean | Allow replacing an existing mediaKey (across different extensions). Defaults to false. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ceraph_add_camera_video
Add an MP4, MOV, or M4V camera video fixture up to 25 MB. Pass the video as base64 or a data URI with a lowercase, hyphen-separated `videoKey`; the matching `<CeraphCamera mediaKey>` uses it for recording. An existing key is preserved unless `overwrite: true` is set. Returns the key, format, replacement status, and size. Fixtures are development-only; production builds use the real camera and exclude test media.
| Parameter | Type | Description |
|---|---|---|
videoBase64 * | string | Base64-encoded video payload. A `data:video/...;base64,...` URI prefix is accepted and stripped automatically. |
videoKey * | string | Lowercase + hyphen-separated stem (e.g. `treadmill`, `id-scan-1`). Becomes both the filename stem AND the value devs pass to `<CeraphCamera mediaKey>` — the same key selects the still image for take… |
contentType | string | Optional MIME hint (e.g. `video/mp4`). If it differs from the detected format, the tool returns a warning and uses the detected format. |
overwrite | boolean | Allow replacing an existing videoKey (across different extensions). Defaults to false. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ceraph_set_camera_test_media
Switch the running development app's CeraphCamera between registered test media and the real camera without rebuilding or restarting. Enable before camera testing and disable when finished. Uses each component's mediaKey; it does not add gallery media. Set save to retain the choice for later Ceraph sessions on this machine. The runtime choice stays active through thinking pauses while connected; production always uses the real camera. Replay runtime-only changes as set-camera-test-media in ceraph_record_run.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | True to use registered camera test media; false to restore the real camera in the running development app. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
save | boolean | Also save this camera-testing preference for later Ceraph sessions on this machine. |
ceraph_add_media
Add an image or video to the selected runtime's system photo library so the agent can test the app's real native media picker. After adding it, open the app's picker and select the supplied media.
| Parameter | Type | Description |
|---|---|---|
mediaBase64 * | string | Base64-encoded image or video bytes. A complete data URI prefix is accepted and stripped. |
contentType | string | Optional MIME type hint used to validate the supplied image or video. |
device | string | Exact Apple runtime ID or Android adb serial. |
platform | string | Mobile platform; target emulator or no-window implies Android. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
target | string | Runtime target. Omit to use the active Ceraph runtime or normal auto-selection. |
rn_reload
Request a JS bundle reload on the running development app through Ceraph's installed app integration. Waits up to `timeoutMs` for the platform automation driver to become responsive again, then captures a screenshot. Dev-only; does nothing in a production build.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
timeoutMs | number | Max time in ms to wait for the app to come back after the reload (default 30000). |
rn_stop
Stop all managed React Native processes and this session's managed no-window Android emulator, if any.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
rn_target_status
Report the active platform, physical-device or virtual-runtime target, exact runtime ID, presentation mode, and automation readiness. Call this when the developer asks which runtime is under test or before starting a flow if uncertain which target is active.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
rn_wda_start
Advanced / simulator-only. Use `ceraph_start` for normal app bring-up. This tool prepares automation for an already-booted iOS Simulator and never targets a real iPhone. It requires the optional `appium-webdriveragent` dependency and may request the one-time Xcode signing setup. When a real iPhone is also connected, explicitly confirm simulator intent so Ceraph never changes targets silently.
| Parameter | Type | Description |
|---|---|---|
confirmSimulatorTarget | boolean | Confirm you INTEND to drive the iOS SIMULATOR even though a real device is connected — rn_wda_start routes automation to the simulator. Set true ONLY when the user explicitly wants the simulator. No… |
derivedDataPath | string | Optional Xcode derived-data directory for this simulator automation session. |
force | boolean | Stop and restart simulator WDA instead of reusing a healthy matching session |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
udid | string | Simulator UDID; defaults to first booted simulator |
rn_wda_stop
Stop the managed iOS Simulator automation session started by rn_wda_start. Idempotent — calling it when no such session is running is a no-op. Real-device automation is unaffected.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
rn_wait_for_device
Wait for a physical mobile runtime to connect. iOS uses macOS usbmuxd events; Android waits for one exact adb serial to become connected and authorized without selecting or probing a different runtime. The call waits until connection, an explicit deadline, or agent cancellation.
| Parameter | Type | Description |
|---|---|---|
device | string | Exact runtime ID: Android adb serial, or Apple CoreDevice/classic hardware UDID. |
platform | string | Platform to wait for; defaults to the active Ceraph platform. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
timeoutMs | integer | Optional explicit deadline in milliseconds. Default: none — the call waits forever and relies on the MCP abort signal for cancellation. Set this only when you want a hard cap. |
ceraph_init
Run the complete Ceraph project setup, equivalent to `npx @ceraph/react-native-mcp init`. This is the recommended agent path: it installs and integrates Ceraph, configures supported MCP clients and runtime-error delivery, prepares camera testing, and checks project and runtime readiness. It preserves existing project customizations and returns manual remediation when a file cannot be changed safely. It detects an active Pro account automatically. Otherwise it returns { status: 'needs-tier' } before mutation; show the plan options, call ceraph_init_select_tier with the user's choice, then re-ca…
| Parameter | Type | Description |
|---|---|---|
collaboration | string | Complete the optional collaboration decision returned by agent init. Commit requires explicit user approval and uses Ceraph's scoped commit path. |
collaborationId | string | Exact collaboration decision identifier returned by init. |
globalCli | string | Install the global ceraph terminal command only after explicit user approval. |
proTools | boolean | Save whether this machine's MCP exposes Pro hooks, style inspection and recorded runs. Default true. Change only at the user's request with userApproved:true, in a separate control-only call. Restart… |
projectAccess | string | Re-enable only the selected project after the user explicitly approves reversing its uninstall. This updates the saved project opt-out only; then call ceraph_start. Do not infer approval from a genera… |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
token | string | Secret sign-in token the user pasted after opening the verificationUri. Never repeat it in output. When set, sign-in and setup continue in this call. |
userApproved | boolean | True only after the user explicitly approved the requested project or machine change. Reuse approval already given for this exact change; do not ask twice. |
userMcp | string | Only change user-level MCP registration across supported clients. Preserve project configuration, CLI and sign-in. Requires explicit user approval. Decline remembers project-only discovery without rem… |
ceraph_init_status
Read the current Ceraph setup state, including app integration, supported client configuration, camera readiness, and any incomplete steps. Read-only. Call `ceraph_init` for complete setup; use a granular init tool only when Ceraph remediation asks for that specific repair.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ceraph_init_auth_browser
Sign in to Ceraph through the browser. Returns { status: 'ok', email? } on success, or machine-selection-required with recently used installations when all three Pro slots are occupied. Relay the choices to the user; never select a machine to sign out without their explicit confirmation. After confirmation, resume with the selected id and generation. No second browser login is needed while approval remains valid. { status: 'aborted' } when the MCP client cancelled the tool call (don't prompt the user — just stop), or a stable remediation on failure. When browser sign-in cannot complete, rela…
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
replacement | object | Exact installation the user explicitly confirmed should be signed out. Use only with resume: true. |
resume | boolean | Resume an approved, pending machine sign-in without reopening the browser. |
token | string | Secret token from this machine's browser approval. Finishes that sign-in without reopening the browser. |
ceraph_init_select_tier
Select the Ceraph plan and drive Pro onboarding. Call with no args to resume onboarding: an authenticated active Pro account returns { status: 'pro-ready' }; otherwise a fresh setup gets the two plan options ({ status: 'needs-tier' }). Call with { tier: 'starter' } for the free local toolset ({ status: 'starter-ready' }); call with { tier: 'pro' } to start Pro setup. The Pro path is a state machine resolved fresh each call: not signed in → { status: 'needs-auth', authUrl } (sign in via ceraph_init_auth_browser, then re-call); signed in but not yet paid → { status: 'needs-checkout', checkou…
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
tier | string | The plan the user chose. Omit on the first call to receive the two options to surface. |
ceraph_init_scan_camera
Find Expo CameraView components that can use deterministic camera fixtures. Returns only the source locations and suggested media keys needed for setup. Choose a descriptive key for the app scenario, and pass the returned line and column to `ceraph_init_replace_camera`.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ceraph_init_replace_camera
Replace one Expo CameraView with a configured CeraphCamera, or set the mediaKey on an unconfigured CeraphCamera. Use `default` when fixture content does not matter, or a lowercase-dashes key matching a camera fixture. Pass the source location returned by `ceraph_init_scan_camera`; column is required only when two cameras share a line. Preserves unrelated source and is safe to re-run with the same key.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Absolute path of the source file. |
line * | integer | 1-based line of the opening <CameraView> tag. |
mediaKey * | string | The mediaKey to use. Either "default" or a lowercase-dashes key matching a configured camera image (JPEG, PNG, WebP, or HEIC) or video (MP4, MOV, or M4V) fixture. |
column | integer | 1-based column of the opening tag (from scan_camera). Required to pick between two cameras on the SAME line; optional otherwise. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ceraph_init_inject_boot
Repair Ceraph's development app integration and required project configuration. Preserves existing app and bundler customizations, is safe to re-run, and reports exact manual remediation for dynamic configuration it cannot change safely. Prefer complete `ceraph_init` unless remediation specifically asks for this repair.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ceraph_init_register_scheme
Configure the development URL scheme Ceraph needs to reconnect to the app. Updates supported static configuration and returns exact manual instructions when a dynamic or native configuration cannot be changed safely.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ceraph_init_setup_mcp_clients
Configure Ceraph in every supported MCP client detected for this project. Preserves unrelated entries and leaves malformed or unfamiliar config untouched with a reason the user can resolve. In a monorepo, pass the chosen React Native app directory. This repairs client configuration only; prefer `ceraph_init` for complete project setup.
| Parameter | Type | Description |
|---|---|---|
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ceraph_run_hook
Fire a registered project-owned Ceraph hook by route when the real UI cannot reliably establish a testing prerequisite. Before considering a hook, prefer the real UI when it can establish that prerequisite: the path itself provides end-to-end coverage and may reveal regressions. After setup, continue the representative end-to-end flow rather than testing only the changed screen or component. If login or payment is under review, exercise that flow rather than skipping it. Before considering testing blocked, inspect ceraph_snapshot.meta.availableHooks. Hooks can create or sign in as disposable t…
| Parameter | Type | Description |
|---|---|---|
route * | string | The hook route to fire — the `route` a `.ceraph/hooks/*.hook.ts` file exports. This can be an advertised screen route or a known hidden utility route such as a test-user cleanup hook. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
ceraph_record_run
Replay an already-verified React Native path without model pauses and produce a clean MP4 with an ordered trace of structured snapshots and screenshots. Explore and debug first; call this only after the path works. Each wait-for marks a verified state and must reference the exploratory ceraph_snapshot capture ID with expectedSnapshotId. Use the resulting manifestPath to retrieve only the trace snapshots and screenshots relevant to a reported problem or a user's request; do not inspect every trace entry by default. If the requested screen is outside the recorded flow, navigate to it and use scr…
ceraph_report_issue
Prepare a sanitized public Ceraph defect report and check GitHub CLI authentication. Submit only with explicit user approval or a matching account-bound lasting preference. Preview first when consent is absent; never attach source, logs, media, or credentials.
| Parameter | Type | Description |
|---|---|---|
action | string | Preview a sanitized report, submit an approved report, or change the account-bound reporting preference. Defaults to preview. |
actual | string | Observed Ceraph behavior, without private app information or credentials. |
code | string | Public Ceraph error or condition code, if available. |
expected | string | Expected Ceraph behavior, without private app information or credentials. |
platform | string | Affected mobile platform, or host for a computer-side defect. |
preference | string | Lasting reporting choice for action:'preference': ask for approval, allow future submissions, or disable submissions. |
projectDir | string | React Native/Expo project directory. Omit when the coding client's workspace identifies one app; supply it to disambiguate projects. |
summary | string | Concise Ceraph defect, without app code, private identifiers, logs, URLs, or customer data. |
tool | string | Ceraph tool name associated with the defect, if known. |
userApproved | boolean | True only when the user explicitly authorized this public submission or lasting reporting preference. |