set_mouse_enabled
-
Change tmux state; no client-supplied executable input. Turn tmux mouse support on or off. This sets the global option, so it applies to every session on this server and changes what a human watching can do with their mouse.
- MCP request method
tools/callSendset_mouse_enabledas the tool name, with the arguments below.- Wraps
LibTmux.TmuxOptions.SetAsyncThe library call this tool makes:src/LibTmux.Mcp/Tools/CapabilityTools.cs:929.
Arguments
No other arguments are accepted.
Result
Returns object
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Set mouse enabled"
Capability
- Toolset
- Manage Change tmux structure or presentation.
- Process reach
none- tmux effects
change
Every C# tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.
Protocol data
Use the complete advertised contract for validation and client integration.
Input schema
{"additionalProperties": false,"properties": {"enabled": {"description": "Whether mouse support is enabled globally.","type": "boolean"}},"required": ["enabled"],"type": "object"}Output schema
{"properties": {"changed": {"type": "string"},"paneId": {"default": null,"type": ["string","null"]},"sessionId": {"default": null,"type": ["string","null"]},"windowId": {"default": null,"type": ["string","null"]}},"required": ["changed"],"type": "object"}