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.

MoreLess about this notice

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

tool MCP

capture_since

capture_since( cursor?: string | null, maxLines?: integer | null, paneId?: string | null, )

Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted. Read only what a pane has printed since the last call. Pass back the cursor each time. Use this to watch a long-running process across turns: the tenth read costs what the first did, where re-capturing the pane would return everything again. Call with no cursor to start watching from now.

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

Arguments

  • cursor? = null (string | null)

    The opaque cursor returned by the previous call. Omit to start from what is on screen now.

  • maxLines? = null (integer | null)

    Maximum returned lines, newest kept. Omit for the server default, 500 unless LIBTMUX_MCP_MAX_LINES sets another.

    minimum
    -2147483648
    maximum
    2147483647
  • paneId? = null (string | null)

    A pane id. Omit for this server’s own pane, or else the one the first session shows.

No other arguments are accepted.

Result

Returns object

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"Capture since"

Capability

Toolset
Inspect Request tmux state and terminal output.
Process reach
none
tmux effects
observe

Every C# tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.

Protocol data

Use the complete advertised contract for validation and client integration.

Input schema
{
"additionalProperties": false,
"properties": {
"cursor": {
"default": null,
"description": "The opaque cursor returned by the previous call. Omit to start from what is on screen now.",
"type": [
"string",
"null"
]
},
"maxLines": {
"default": null,
"description": "Maximum returned lines, newest kept. Omit for the server default, 500 unless LIBTMUX_MCP_MAX_LINES sets another.",
"maximum": 2147483647,
"minimum": -2147483648,
"type": [
"integer",
"null"
]
},
"paneId": {
"default": null,
"description": "A pane id. Omit for this server's own pane, or else the one the first session shows.",
"type": [
"string",
"null"
]
}
},
"type": "object"
}
Output schema
{
"properties": {
"anchorLost": {
"type": "boolean"
},
"content": {
"properties": {
"droppedBytes": {
"type": "integer"
},
"droppedLines": {
"type": "integer"
},
"lines": {
"items": {
"type": "string"
},
"type": "array"
},
"truncated": {
"type": "boolean"
}
},
"required": [
"lines",
"truncated",
"droppedLines",
"droppedBytes"
],
"type": "object"
},
"cursor": {
"type": "string"
},
"linesMissed": {
"type": "boolean"
},
"paneId": {
"type": "string"
}
},
"required": [
"paneId",
"content",
"cursor",
"linesMissed",
"anchorLost"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference