Skip to main content
Glama
alderban107

hyprland-mcp

by alderban107

type_text

Simulate keyboard input to type text into applications with configurable keystroke delay for automation workflows.

Instructions

Type text as if from a keyboard.

Args: text: The text to type delay_ms: Delay between keystrokes in milliseconds (0 = instant)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
delay_msNo

Implementation Reference

  • The handler implementation for type_text which uses wtype to simulate keyboard input.
    async def type_text(text: str, delay_ms: int = 0) -> None:
        """Type text using wtype."""
        require_tool("wtype")
        cmd = ["wtype"]
        if delay_ms > 0:
            cmd.extend(["-d", str(delay_ms)])
        cmd.extend(["--", text])
    
        proc = await asyncio.create_subprocess_exec(
            *cmd,
            stdout=asyncio.subprocess.PIPE,
            stderr=asyncio.subprocess.PIPE,
        )
        _, stderr = await proc.communicate()
        if proc.returncode != 0:
            raise InputError(f"wtype failed: {stderr.decode().strip()}")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alderban107/hyprland-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server