MCPconceptPrompts

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.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

prompt MCP

run_and_wait

run_and_wait( command, pane_id, timeout?, )
prompt

Run one shell command in a pane, wait for it to finish, and read its exit status.

MCP request method
prompts/get Send run_and_wait as the prompt name, with the arguments below.

Arguments

  • command

    the shell command to run

    Binding
    Prompt argument
  • pane_id

    the target pane, such as %1

    Binding
    Prompt argument
  • timeout?

    seconds to wait for completion; defaults to 60

    Binding
    Prompt argument

Result

Returns the prompt’s messages. The client supplies the advertised arguments as strings.

Protocol data

Use the complete advertised contract for validation and client integration.

Registration
{
"_meta": {
"com.git-pull.libtmux-mcp/prompt": {
"arguments": [
{
"description": "the shell command to run",
"name": "command",
"required": true
},
{
"description": "the target pane, such as %1",
"name": "pane_id",
"required": true
},
{
"description": "seconds to wait for completion; defaults to 60",
"name": "timeout",
"required": false
}
],
"description": "Run one shell command in a pane, wait for it to finish, and read its exit status.",
"name": "run_and_wait",
"requiresTools": [
"run_shell_command"
],
"title": "Run a command and wait"
}
},
"arguments": [
{
"description": "the shell command to run",
"name": "command",
"required": true
},
{
"description": "the target pane, such as %1",
"name": "pane_id",
"required": true
},
{
"description": "seconds to wait for completion; defaults to 60",
"name": "timeout"
}
],
"description": "Run one shell command in a pane, wait for it to finish, and read its exit status.",
"name": "run_and_wait",
"title": "Run a command and wait"
}
Esc
Search in

Type to search.

Reference previewOpen reference