pt_fill_input
Fill React Native TextInput fields by matching accessibilityLabel, testID, or placeholder and invoking onChangeText via Hermes debugger. Requires Metro dev server.
Instructions
Fill a React Native TextInput by connecting to the Hermes debugger via CDP.
This is the MOST RELIABLE method for filling React Native controlled TextInput fields. It walks the React fiber tree, finds the component matching your identifier, and calls its onChangeText callback directly inside the JS runtime.
REQUIREMENTS:
Metro dev server must be running (default: localhost:8081)
App must be in development mode (DEV = true)
The TextInput must be currently rendered on screen
The identifier is matched against accessibilityLabel, testID, or placeholder (case-insensitive partial match).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The text value to fill into the input field | |
| metroUrl | No | Metro dev server URL (default: http://localhost:8081) | http://localhost:8081 |
| identifier | Yes | Text to match against the TextInput's accessibilityLabel, testID, or placeholder. Example: 'email', 'password', 'username' |