MCPconceptTools

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

tool MCP

set_mouse_enabled

set_mouse_enabled( enabled: boolean, )

Change tmux state; no client-supplied executable input. Set the global tmux mouse option through a closed boolean schema.

MCP request method
tools/call Send set_mouse_enabled as the tool name, with the arguments below.
Wraps
server.Server.setGlobalOptionThe library call this tool makes: packages/mcp/src/tools/target.ts:415.

Arguments

Result

Returns object

No other properties are accepted.

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false

Capability

Toolset
Manage Change tmux structure or presentation.
Process reach
none
tmux effects
change

Every TypeScript 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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"enabled": {
"description": "Whether tmux should report mouse events.",
"type": "boolean"
}
},
"required": [
"enabled"
],
"type": "object"
}
Output schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
}
},
"required": [
"enabled"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference