{
  "name": "run_operations",
  "wireName": "run_operations",
  "source": {
    "repo": "libtmux/libtmux-julia",
    "revision": "f3da513be1225d36d5854cd8db5972c01857578e",
    "extractedRevision": "f3da513be1225d36d5854cd8db5972c01857578e",
    "file": "packages/LibTmuxMCP/src/tools.jl",
    "line": 8
  },
  "description": "Run up to eight enabled tool calls sequentially after validating every item. Stop at the first execution failure and return ordered completed results plus a one-based failedIndex; no rollback.",
  "schemaStatus": "runtime",
  "enabledByDefault": false,
  "enableOption": "--tool",
  "inputSchema": {
    "additionalProperties": false,
    "properties": {
      "operations": {
        "items": {
          "oneOf": [
            {
              "additionalProperties": false,
              "properties": {
                "arguments": {
                  "additionalProperties": false,
                  "properties": {
                    "limit": {
                      "default": 32,
                      "maximum": 128,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "offset": {
                      "default": 0,
                      "maximum": 1000000,
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "tool": {
                  "const": "list_panes"
                }
              },
              "required": [
                "tool",
                "arguments"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "arguments": {
                  "additionalProperties": false,
                  "properties": {
                    "lines": {
                      "default": 100,
                      "maximum": 1000,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "maxBytes": {
                      "default": 65536,
                      "maximum": 65536,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "target": {
                      "additionalProperties": false,
                      "description": "Explicit captured target; omission requires a configured caller pane",
                      "properties": {
                        "generation": {
                          "description": "Opaque generation from list_panes",
                          "maxLength": 128,
                          "type": "string"
                        },
                        "paneId": {
                          "description": "Valid UTF-8; at most 64 bytes",
                          "maxLength": 64,
                          "pattern": "^%(0|[1-9][0-9]*)$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "paneId",
                        "generation"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "target"
                  ],
                  "type": "object"
                },
                "tool": {
                  "const": "capture_pane"
                }
              },
              "required": [
                "tool",
                "arguments"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "arguments": {
                  "additionalProperties": false,
                  "properties": {
                    "keys": {
                      "items": {
                        "description": "Valid UTF-8; at most 1024 bytes",
                        "maxLength": 1024,
                        "type": "string"
                      },
                      "maxItems": 64,
                      "minItems": 1,
                      "type": "array"
                    },
                    "literal": {
                      "default": false,
                      "type": "boolean"
                    },
                    "target": {
                      "additionalProperties": false,
                      "description": "Explicit captured target; omission requires a configured caller pane",
                      "properties": {
                        "generation": {
                          "description": "Opaque generation from list_panes",
                          "maxLength": 128,
                          "type": "string"
                        },
                        "paneId": {
                          "description": "Valid UTF-8; at most 64 bytes",
                          "maxLength": 64,
                          "pattern": "^%(0|[1-9][0-9]*)$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "paneId",
                        "generation"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "target",
                    "keys"
                  ],
                  "type": "object"
                },
                "tool": {
                  "const": "send_keys"
                }
              },
              "required": [
                "tool",
                "arguments"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "arguments": {
                  "additionalProperties": false,
                  "properties": {
                    "target": {
                      "additionalProperties": false,
                      "description": "Explicit captured target; omission requires a configured caller pane",
                      "properties": {
                        "generation": {
                          "description": "Opaque generation from list_panes",
                          "maxLength": 128,
                          "type": "string"
                        },
                        "paneId": {
                          "description": "Valid UTF-8; at most 64 bytes",
                          "maxLength": 64,
                          "pattern": "^%(0|[1-9][0-9]*)$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "paneId",
                        "generation"
                      ],
                      "type": "object"
                    },
                    "text": {
                      "description": "Valid UTF-8; at most 65536 bytes",
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "target",
                    "text"
                  ],
                  "type": "object"
                },
                "tool": {
                  "const": "paste_text"
                }
              },
              "required": [
                "tool",
                "arguments"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "arguments": {
                  "additionalProperties": false,
                  "anyOf": [
                    {
                      "required": [
                        "width"
                      ]
                    },
                    {
                      "required": [
                        "height"
                      ]
                    }
                  ],
                  "properties": {
                    "height": {
                      "maximum": 10000,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "target": {
                      "additionalProperties": false,
                      "description": "Explicit captured target; omission requires a configured caller pane",
                      "properties": {
                        "generation": {
                          "description": "Opaque generation from list_panes",
                          "maxLength": 128,
                          "type": "string"
                        },
                        "paneId": {
                          "description": "Valid UTF-8; at most 64 bytes",
                          "maxLength": 64,
                          "pattern": "^%(0|[1-9][0-9]*)$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "paneId",
                        "generation"
                      ],
                      "type": "object"
                    },
                    "width": {
                      "maximum": 10000,
                      "minimum": 1,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "target"
                  ],
                  "type": "object"
                },
                "tool": {
                  "const": "resize_pane"
                }
              },
              "required": [
                "tool",
                "arguments"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "arguments": {
                  "additionalProperties": false,
                  "properties": {
                    "target": {
                      "additionalProperties": false,
                      "description": "Explicit captured target; omission requires a configured caller pane",
                      "properties": {
                        "generation": {
                          "description": "Opaque generation from list_panes",
                          "maxLength": 128,
                          "type": "string"
                        },
                        "paneId": {
                          "description": "Valid UTF-8; at most 64 bytes",
                          "maxLength": 64,
                          "pattern": "^%(0|[1-9][0-9]*)$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "paneId",
                        "generation"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "target"
                  ],
                  "type": "object"
                },
                "tool": {
                  "const": "kill_pane"
                }
              },
              "required": [
                "tool",
                "arguments"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "arguments": {
                  "additionalProperties": false,
                  "properties": {
                    "command": {
                      "description": "Executable and argv; no shell expansion",
                      "items": {
                        "description": "Valid UTF-8; at most 1024 bytes",
                        "maxLength": 1024,
                        "type": "string"
                      },
                      "maxItems": 32,
                      "minItems": 1,
                      "type": "array"
                    },
                    "name": {
                      "description": "Valid UTF-8; at most 64 bytes",
                      "maxLength": 64,
                      "pattern": "^[A-Za-z0-9_-]+$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "command"
                  ],
                  "type": "object"
                },
                "tool": {
                  "const": "create_session"
                }
              },
              "required": [
                "tool",
                "arguments"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "arguments": {
                  "additionalProperties": false,
                  "properties": {
                    "generation": {
                      "description": "Valid UTF-8; at most 128 bytes",
                      "maxLength": 128,
                      "type": "string"
                    },
                    "sessionId": {
                      "description": "Valid UTF-8; at most 64 bytes",
                      "maxLength": 64,
                      "type": "string"
                    }
                  },
                  "required": [
                    "sessionId",
                    "generation"
                  ],
                  "type": "object"
                },
                "tool": {
                  "const": "teardown_session"
                }
              },
              "required": [
                "tool",
                "arguments"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "arguments": {
                  "additionalProperties": false,
                  "properties": {
                    "target": {
                      "additionalProperties": false,
                      "description": "Explicit captured target; omission requires a configured caller pane",
                      "properties": {
                        "generation": {
                          "description": "Opaque generation from list_panes",
                          "maxLength": 128,
                          "type": "string"
                        },
                        "paneId": {
                          "description": "Valid UTF-8; at most 64 bytes",
                          "maxLength": 64,
                          "pattern": "^%(0|[1-9][0-9]*)$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "paneId",
                        "generation"
                      ],
                      "type": "object"
                    },
                    "text": {
                      "description": "Valid UTF-8; at most 1024 bytes",
                      "maxLength": 1024,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "target",
                    "text"
                  ],
                  "type": "object"
                },
                "tool": {
                  "const": "wait_for_text"
                }
              },
              "required": [
                "tool",
                "arguments"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "arguments": {
                  "additionalProperties": false,
                  "properties": {
                    "keys": {
                      "items": {
                        "description": "Valid UTF-8; at most 1024 bytes",
                        "maxLength": 1024,
                        "type": "string"
                      },
                      "maxItems": 64,
                      "minItems": 1,
                      "type": "array"
                    },
                    "literal": {
                      "default": false,
                      "type": "boolean"
                    },
                    "target": {
                      "additionalProperties": false,
                      "description": "Explicit captured target; omission requires a configured caller pane",
                      "properties": {
                        "generation": {
                          "description": "Opaque generation from list_panes",
                          "maxLength": 128,
                          "type": "string"
                        },
                        "paneId": {
                          "description": "Valid UTF-8; at most 64 bytes",
                          "maxLength": 64,
                          "pattern": "^%(0|[1-9][0-9]*)$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "paneId",
                        "generation"
                      ],
                      "type": "object"
                    },
                    "text": {
                      "description": "Valid UTF-8; at most 1024 bytes",
                      "maxLength": 1024,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "target",
                    "keys",
                    "text"
                  ],
                  "type": "object"
                },
                "tool": {
                  "const": "send_keys_and_wait"
                }
              },
              "required": [
                "tool",
                "arguments"
              ],
              "type": "object"
            }
          ]
        },
        "maxItems": 8,
        "minItems": 1,
        "type": "array"
      }
    },
    "required": [
      "operations"
    ],
    "type": "object"
  },
  "outputSchema": {
    "anyOf": [
      {
        "additionalProperties": false,
        "properties": {
          "atomic": {
            "const": false
          },
          "completed": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "result": {
                  "type": "object"
                },
                "tool": {
                  "type": "string"
                }
              },
              "required": [
                "tool",
                "result"
              ],
              "type": "object"
            },
            "maxItems": 8,
            "type": "array"
          },
          "failedIndex": {
            "type": "null"
          }
        },
        "required": [
          "failedIndex",
          "completed",
          "atomic"
        ],
        "type": "object"
      },
      {
        "additionalProperties": false,
        "properties": {
          "atomic": {
            "const": false
          },
          "completed": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "result": {
                  "type": "object"
                },
                "tool": {
                  "type": "string"
                }
              },
              "required": [
                "tool",
                "result"
              ],
              "type": "object"
            },
            "maxItems": 8,
            "type": "array"
          },
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "effects": {
                "enum": [
                  "none",
                  "possible"
                ]
              },
              "message": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "message",
              "effects",
              "retryable"
            ],
            "type": "object"
          },
          "failedIndex": {
            "maximum": 8,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "failedIndex",
          "completed",
          "atomic",
          "error"
        ],
        "type": "object"
      },
      {
        "additionalProperties": false,
        "properties": {
          "atomic": {
            "const": false
          },
          "completed": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "completed": {
                  "const": true
                },
                "resultOmitted": {
                  "const": true
                },
                "tool": {
                  "type": "string"
                }
              },
              "required": [
                "tool",
                "completed",
                "resultOmitted"
              ],
              "type": "object"
            },
            "maxItems": 8,
            "type": "array"
          },
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "const": "result_limit"
              },
              "effects": {
                "enum": [
                  "none",
                  "possible"
                ]
              },
              "message": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "message",
              "effects",
              "retryable"
            ],
            "type": "object"
          },
          "failedIndex": {
            "type": "null"
          }
        },
        "required": [
          "completed",
          "atomic",
          "error",
          "failedIndex"
        ],
        "type": "object"
      },
      {
        "additionalProperties": false,
        "properties": {
          "atomic": {
            "const": false
          },
          "completed": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "completed": {
                  "const": true
                },
                "resultOmitted": {
                  "const": true
                },
                "tool": {
                  "type": "string"
                }
              },
              "required": [
                "tool",
                "completed",
                "resultOmitted"
              ],
              "type": "object"
            },
            "maxItems": 8,
            "type": "array"
          },
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "const": "result_limit"
              },
              "effects": {
                "enum": [
                  "none",
                  "possible"
                ]
              },
              "message": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "message",
              "effects",
              "retryable"
            ],
            "type": "object"
          },
          "failedIndex": {
            "maximum": 8,
            "minimum": 1,
            "type": "integer"
          },
          "originalError": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "completed",
          "atomic",
          "error",
          "failedIndex",
          "originalError"
        ],
        "type": "object"
      },
      {
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "effects": {
                "enum": [
                  "none",
                  "possible"
                ]
              },
              "message": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "message",
              "effects",
              "retryable"
            ],
            "type": "object"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      }
    ],
    "type": "object"
  },
  "annotations": {
    "destructiveHint": true,
    "idempotentHint": false,
    "openWorldHint": true,
    "readOnlyHint": false
  }
}
