tap
Simulate user interaction by tapping, long-pressing, or double-tapping a widget in a live Flutter app. Specify the target widget and gesture type to trigger the intended action during testing.
Instructions
Taps, long-presses, or double-taps a widget. Defaults to a normal tap. Use gesture to change.
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": "tap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Target string (e.g. '#loginBtn', 'text="Submit"', 'type="ElevatedButton"', 'semanticsLabel="Username"') | |
| gesture | No | Gesture type: 'tap' (default), 'long_press', or 'double' for double-tap | |
| timeout_ms | No | Implicit wait timeout in milliseconds before failing |