Skip to content

compose_type

Type text into a UI input element. Identify the element using its element ID from the view hierarchy (e.g., ‘e3’), or by existing text content. By default this clears the field first. Set clearFirst to false to append text instead.

Source

  • Kind: class-backed
  • Class: xyz.block.trailblaze.compose.driver.tools.ComposeTypeTool

Contract

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

Input schema

Required parameters

  • textString The text to type into the element.

Optional parameters

  • elementIdString Element ID from the view hierarchy, e.g., ‘e3’. Preferred method.
  • testTagString Accessibility identifier of the input element.
  • existingTextString The existing text content of the input element.
  • elementString Human-readable description of the element being typed into, for logging.
  • clearFirstBoolean If true (default), clear the field before typing. If false, append to existing text.

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.