switch_workspace
Switch between workspaces in Hyprland by name or number to organize windows and manage desktop layouts.
Instructions
Switch to a workspace by name or number.
Args: workspace: Workspace name or number (e.g. "1", "3", "special:scratchpad")
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes |
Implementation Reference
- hyprland_mcp/server.py:50-58 (handler)The switch_workspace tool uses hyprctl to dispatch the "workspace" command to Hyprland.
@mcp.tool() async def switch_workspace(workspace: str) -> str: """Switch to a workspace by name or number. Args: workspace: Workspace name or number (e.g. "1", "3", "special:scratchpad") """ await hyprctl.dispatch("workspace", workspace) return f"Switched to workspace {workspace}"