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.

tool MCPlatest

run_shell_command

tool [source]

Run a shell command in a pane with your user’s permissions. Run one command in a singular trusted POSIX shell and return bounded output.

MCP request method
tools/call Send run_shell_command as the tool name, with the arguments below.

Arguments#

No other arguments are accepted.

Result#

Returns object

No other properties are accepted.

Annotations#

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"Run shell command"

Protocol data#

Use the complete advertised contract for validation and client integration.

Input schema
{
"additionalProperties": false,
"properties": {
"command": {
"description": "Caller-controlled command.",
"type": "string"
},
"force": {
"description": "Caller-controlled force.",
"type": "boolean"
},
"maxLines": {
"description": "Caller-controlled maxLines.",
"maximum": 2000,
"minimum": 1,
"type": "integer"
},
"paneId": {
"description": "Caller-controlled paneId.",
"type": "string"
},
"timeoutMs": {
"description": "Caller-controlled timeoutMs.",
"maximum": 600000,
"minimum": 100,
"type": "integer"
}
},
"required": [
"command",
"paneId"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"droppedLines": {
"type": "integer"
},
"effectiveTimeout": {
"type": "number"
},
"exitStatus": {
"type": [
"integer",
"null"
]
},
"linesMissed": {
"type": "boolean"
},
"output": {
"items": {
"type": "string"
},
"type": "array"
},
"pane": {
"type": "string"
},
"paneRef": {
"type": "string"
},
"seconds": {
"type": "number"
},
"timedOut": {
"type": "boolean"
}
},
"required": [
"droppedLines",
"effectiveTimeout",
"exitStatus",
"linesMissed",
"output",
"pane",
"paneRef",
"seconds",
"timedOut"
],
"type": "object"
}
Esc

Type to search.

Reference previewOpen reference