MCPPrompts

Choose documentation 3

latest

Current version

latest
English

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

promptMCPlatest

diagnose_failing_pane

diagnose_failing_pane( pane_id, )
prompt

Gather pane context and propose a root-cause hypothesis.

Uses snapshot_pane (content + cursor + mode + scroll state in one call) instead of capture_pane + get_pane_info so the agent sees everything in a single protocol call. When the diagnosis needs another read after waiting or observing, the rendered recipe points agents at capture_since instead of a repeated full capture.

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

Arguments#

  • pane_id#

    The pane to diagnose.

    Provide a value matching the following JSON schema: {“type”:“string”}. Encode non-string values as JSON.

    Binding
    Prompt argument
    Required
    Yes

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": {
"fastmcp": {
"tags": []
}
},
"arguments": [
{
"description": "The pane to diagnose.\n\nProvide a value matching the following JSON schema: {\"type\":\"string\"}. Encode non-string values as JSON.",
"name": "pane_id",
"required": true
}
],
"description": "Gather pane context and propose a root-cause hypothesis.\n\nUses ``snapshot_pane`` (content + cursor + mode + scroll state\nin one call) instead of ``capture_pane`` + ``get_pane_info`` so\nthe agent sees everything in a single protocol call. When the\ndiagnosis needs another read after waiting or observing, the\nrendered recipe points agents at ``capture_since`` instead of a\nrepeated full capture.",
"name": "diagnose_failing_pane"
}
Esc

Type to search.

Reference preview Open reference