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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ref": "<ref>",
"text": "<text>"
},
"name": "qt_type"
}
}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 |