toggle_fullscreen
Switch active windows to fullscreen or maximized mode to optimize workspace visibility and focus during desktop automation tasks.
Instructions
Toggle fullscreen for the active window.
Args: mode: "fullscreen" for real fullscreen, "maximize" for maximized (keeps bar)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "toggle_fullscreen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | fullscreen |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- hyprland_mcp/server.py:182-190 (handler)The toggle_fullscreen tool handler. It calculates the correct flag for hyprctl based on the mode and dispatches the fullscreen command.
async def toggle_fullscreen(mode: str = "fullscreen") -> str: """Toggle fullscreen for the active window. Args: mode: "fullscreen" for real fullscreen, "maximize" for maximized (keeps bar) """ flag = "0" if mode == "fullscreen" else "1" await hyprctl.dispatch("fullscreen", flag) return f"Toggled {mode}" - hyprland_mcp/server.py:181-181 (registration)The registration decorator for the toggle_fullscreen tool.
@mcp.tool()