Skip to content

pressKey

Press a special key that isn’t used for regular text input. Examples: - BACK: navigate to the previous page or state (Android only). - ENTER: submit the current form or text input. - HOME: go to the device’s home screen / send the current app to the background. - BACKSPACE: delete the character before the caret in the currently focused field. - TAB: move focus to the next field. - ESCAPE: dismiss the keyboard or current modal.

Source

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

Contract

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

Input schema

Required parameters

  • keyCodeToolParameterType.Enum( entries = [BACK, ENTER, HOME, BACKSPACE, TAB, ESCAPE] )

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.