MCPconceptTools

Choose documentation 3

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. 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

teardown_session

teardown_session( generation: string, sessionId: string, )

Destroy an exact generation-bound session created by this application. Borrowed sessions are refused. Configured tmux hooks and aliases may have effects, including during observation.

MCP request method
tools/call Send teardown_session as the tool name, with the arguments below.
Wraps
LibTmux.kill_sessionThe library call this tool makes: packages/LibTmuxMCP/src/tools.jl:972.
Tool selection
Opt in with --tool teardown_session.

Arguments

No other arguments are accepted.

Result

Returns object | object

Matches one or more variants.

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false

Capability

Toolset
Teardown Delete tmux objects or retained scrollback. Not reversible.
Process reach
none
tmux effects
observe delete

Every Julia 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": {
"generation": {
"description": "Valid UTF-8; at most 128 bytes",
"maxLength": 128,
"type": "string"
},
"sessionId": {
"description": "Valid UTF-8; at most 64 bytes",
"maxLength": 64,
"type": "string"
}
},
"required": [
"sessionId",
"generation"
],
"type": "object"
}
Output schema
{
"anyOf": [
{
"additionalProperties": false,
"properties": {
"completed": {
"type": "boolean"
},
"generation": {
"type": "string"
},
"sessionId": {
"type": "string"
}
},
"required": [
"completed",
"sessionId",
"generation"
],
"type": "object"
},
{
"properties": {
"error": {
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"effects": {
"enum": [
"none",
"possible"
]
},
"message": {
"type": "string"
},
"output": {
"type": "string"
},
"retryable": {
"type": "boolean"
}
},
"required": [
"code",
"message",
"effects",
"retryable"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
}
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference