vm_send_text
Type text into a QEMU VM console by sending each character as a keypress, handling shift and Enter, to automate input of credentials or commands.
Instructions
Type a text string into a QEMU VM's console, character by character.
Each character is sent as an individual keypress. Use this to type
login credentials, commands, or other text into the VM console.
Combine with vm_screenshot to verify the result.
Supports printable ASCII characters. Newlines ('
') are sent as Enter. Note: characters requiring Shift (uppercase, symbols like '!', '@') are sent with shift automatically.
Args:
vmid: The numeric ID of the QEMU VM.
text: Text string to type into the VM console (e.g. 'administrator
admin '). delay: Delay between keypresses in seconds (default 0.05). confirm: Must be true to type the text into the VM console.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| vmid | Yes | ||
| delay | No | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |