console_key_state
Press or release one supported key on a Hyper-V VM console, releasing held keys when finished; use the key-combination tool for ordinary chords.
Instructions
Explicitly press or release one supported key. Release held keys when finished; prefer console_press_keys for ordinary chords.
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": {
"vm_name": "<vm_name>",
"key": "<key>",
"down": "<down>"
},
"name": "console_key_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| down | Yes | ||
| vm_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||