# run_shell_command

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

> Run a shell command in a pane with your user's permissions. Runs one command you author in a pane that is not synchronized with others, rechecks the pane just before sending, and waits for it to finish, reporting its exit status.

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. Runs one command you author in a pane that is not synchronized with others, rechecks the pane just before sending, and waits for it to finish, reporting its exit status.

[All Go tools](../) · [JSON](../run_shell_command.json) · [Source](https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/mcp/manifest_catalog.go#L491)

## Arguments

* `command` required · string

  the shell command run in the pane's interactive shell

* `max_lines` optional · integer

  maximum output lines, keeping the newest

* `pane_id` required · string

  the pane id, such as %1

* `suppress_history` optional · boolean

  best-effort persistent history suppression

* `timeout` optional · number

  seconds to wait before giving up

## Schemas

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