# run_shell_command

Source: https://libtmux.org/en/swift/latest/mcp/tools/run_shell_command/

> 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 is in development

Server behavior and tool contracts may change. Tool availability depends on the server configuration.

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.

[All Swift tools](../) · [JSON](../run_shell_command.json) · [Source](https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmuxMCP/ToolOperation.swift#L41)

## Arguments

* `command` required · string

  Caller-controlled command.

* `force` optional · boolean

  Caller-controlled force.

* `maxLines` optional · integer

  Caller-controlled maxLines.

* `paneId` required · string

  Caller-controlled paneId.

* `timeoutMs` optional · integer

  Caller-controlled timeoutMs.

## Schemas

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