app_toggle
Flip a switch or set its boolean value in a connected Expo app by targeting an element with a reference, label, or testID.
Instructions
Flip a Switch (or set it with value).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "app_toggle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ref from the last snapshot, e.g. "e4" | |
| full | No | full screen instead of a diff | |
| text | No | visible label/placeholder (exact match first, then contains) | |
| value | No | ||
| testID | No | testID prop of the element | |
| snapshot | No | report the screen afterwards (default true) |