Focus a window and type into it (verified)
window_typeSend text to a target window by matching title or address, focus it, then optionally press Enter to submit.
Instructions
One-shot text input to ANY window: resolve target (match/address), focus it with measured verification, then type via wtype. Defaults to the currently focused window if no target given. submit=true presses Return afterwards. Example: window_type(match="opencode", text="hi", submit=true) — talk to another agent.
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": {
"text": "<text>"
},
"name": "window_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | text to type; \n becomes Return | |
| match | No | class or title substring to find the target window | |
| submit | No | press Return after typing | |
| address | No | exact Hyprland address like 0x5630... (wins over match) |