Skip to content

longPress

Press and hold (long press / tap-and-hold) an element by its ref ID from the snapshot. Use the short hash ref shown in square brackets (e.g., y778 from [y778] “Profile photo”). Use this instead of tap whenever the interaction needs a hold: opening a context menu, revealing reorder or drag handles, hold-to-delete confirmations, entering multi-select mode, or any press-and-hold gesture. Refs are stable across captures of the same screen.

Source

  • Kind: class-backed
  • Class: xyz.block.trailblaze.toolcalls.commands.LongPressTrailblazeTool

Contract

  • Visible to LLM: yes (surface_to_llm: true)
  • Recordable: no (is_recordable: false)
  • Host-only: no (requires_host: false)

Input schema

Required parameters

  • refString The element ref from the snapshot (e.g., ‘y778’)

Optional parameters

  • reasoningString

Output

Returns: string (opaque text content)

Typed result schemas (kind: query | action, MCP structuredContent) are not yet carried by the resolved manifest — this section will gain detail when that lands.