Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

run_shell_command

Require one live configured pane, outside human-owned mode and running a supported POSIX foreground shell, then send one command and return output after its private completion boundary. Run a shell command in a pane with your user’s permissions.

All C++ tools · JSON · Source

Arguments

command required · string
Shell command sent to the pane.
paneId required · string
Stable pane ID.
timeoutMs optional · integer
Completion timeout in milliseconds.

Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

Input schema
{
"additionalProperties": false,
"properties": {
"command": {
"description": "Shell command sent to the pane.",
"maxLength": 1048576,
"type": "string"
},
"paneId": {
"description": "Stable pane ID.",
"maxLength": 512,
"type": "string"
},
"timeoutMs": {
"description": "Completion timeout in milliseconds.",
"maximum": 60000,
"minimum": 1,
"type": "integer"
}
},
"required": [
"paneId",
"command"
],
"type": "object"
}
Output schema
{
"additionalProperties": true,
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "Run a shell command in a tmux pane"
}
Esc

Type to search.