Skip to content

dragTo

Drag an element to another element or to a point, in one continuous press-move-release gesture. Use the short hash refs from the snapshot (e.g. y778 from [y778]). Provide the source ref, then EITHER toRef (drag onto another element) OR toX/toY (drag to a screen point). Use for reordering list items, moving a card onto a target, dragging a slider/handle to a position, or repositioning a pin. Optional durationMs paces the drag (default 1000ms — slow and deliberate so it registers as a drag, not a flick).

Source

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

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 source element ref to drag (e.g., ‘y778’)

Optional parameters

  • toRefString Target element ref to drag onto. Provide this OR toX/toY.
  • toXInteger Target X coordinate to drag to. Provide toX and toY together, OR use toRef.
  • toYInteger Target Y coordinate to drag to. Provide toX and toY together, OR use toRef.
  • durationMsInteger How long the drag takes end-to-end, in ms. Default 1000 (deliberate drag).
  • 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.