Skip to main content
Glama
alderban107

hyprland-mcp

by alderban107

get_cursor_position

Retrieve the current cursor position in absolute layout coordinates for desktop automation tasks.

Instructions

Get the current cursor position in absolute layout coordinates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function `get_cursor_position` which executes the tool logic by querying Hyprland's `cursorpos`.
    @mcp.tool()
    async def get_cursor_position() -> str:
        """Get the current cursor position in absolute layout coordinates."""
        pos = await hyprctl.query("cursorpos")
        return f"Cursor at ({pos['x']}, {pos['y']})"

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