qt_type
Types text into a Qt widget referenced from a snapshot, with options to clear existing content or paste multi-line text via clipboard.
Instructions
Type text into a widget.
Args: ref: Widget ref from qt_snapshot. text: Text to type. clear_first: If True, select all and delete before typing. use_clipboard: If True, insert via Ctrl+V paste instead of key-by-key events. Use this for multi-line text in console/terminal widgets — character-by-character typing treats each newline as Enter (submit), corrupting multi-line input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| text | Yes | ||
| instance | No | ||
| clear_first | No | ||
| use_clipboard | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |