long_press
Simulates a touch-and-hold gesture on a UI element using its tree ref to trigger long-press actions and verify resulting behavior on a live device session.
Instructions
Long-press (touch and hold) an element by its ref.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ref": "<ref>"
},
"name": "long_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref from the UI tree (e.g. @e5 or e5). | |
| session_id | No | Session ID to target. Optional: falls back to the MCP-server-held dev_start session, then this project's `vibeview dev --detach` state, if either is available. | |
| duration_ms | No | Hold duration in milliseconds (default: 800). |