run_operations
-
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.
- MCP request method
tools/callSendrun_operationsas the tool name, with the arguments below.- Tool selection
- Opt in with
--tool run_operations.
Arguments#
- additionalProperties
false
-
operations: Array<object | object | object | object | object | object | object | object | object | object> Required #
- minItems
1- maxItems
8
-
Items: object | object | object | object | object | object | object | object | object | object #
Matches exactly one variant.
-
- additionalProperties
false
-
- additionalProperties
false
-
- additionalProperties
false
-
- Default
100- minimum
1- maximum
1000
-
- Default
65536- minimum
1- maximum
65536
-
Explicit captured target; omission requires a configured caller pane
- additionalProperties
false
-
generation: string Required #
Opaque generation from list_panes
- maxLength
128
-
Valid UTF-8; at most 64 bytes
- maxLength
64- pattern
"^%(0|[1-9][0-9]*)$"
-
- additionalProperties
false
-
- additionalProperties
false
-
keys: Array<string> Required #
- minItems
1- maxItems
64
-
- Default
false
-
Explicit captured target; omission requires a configured caller pane
- additionalProperties
false
-
generation: string Required #
Opaque generation from list_panes
- maxLength
128
-
Valid UTF-8; at most 64 bytes
- maxLength
64- pattern
"^%(0|[1-9][0-9]*)$"
-
- additionalProperties
false
-
- additionalProperties
false
-
Explicit captured target; omission requires a configured caller pane
- additionalProperties
false
-
generation: string Required #
Opaque generation from list_panes
- maxLength
128
-
Valid UTF-8; at most 64 bytes
- maxLength
64- pattern
"^%(0|[1-9][0-9]*)$"
-
Valid UTF-8; at most 65536 bytes
- maxLength
65536
-
- additionalProperties
false
-
arguments: any value | any value Required #
- additionalProperties
false
Matches one or more variants.
-
- minimum
1- maximum
10000
-
Explicit captured target; omission requires a configured caller pane
- additionalProperties
false
-
generation: string Required #
Opaque generation from list_panes
- maxLength
128
-
Valid UTF-8; at most 64 bytes
- maxLength
64- pattern
"^%(0|[1-9][0-9]*)$"
-
- minimum
1- maximum
10000
-
- additionalProperties
false
-
- additionalProperties
false
-
Explicit captured target; omission requires a configured caller pane
- additionalProperties
false
-
generation: string Required #
Opaque generation from list_panes
- maxLength
128
-
Valid UTF-8; at most 64 bytes
- maxLength
64- pattern
"^%(0|[1-9][0-9]*)$"
-
- additionalProperties
false
-
- additionalProperties
false
-
- additionalProperties
false
-
- additionalProperties
false
-
- additionalProperties
false
-
Explicit captured target; omission requires a configured caller pane
- additionalProperties
false
-
generation: string Required #
Opaque generation from list_panes
- maxLength
128
-
Valid UTF-8; at most 64 bytes
- maxLength
64- pattern
"^%(0|[1-9][0-9]*)$"
-
Valid UTF-8; at most 1024 bytes
- minLength
1- maxLength
1024
-
- additionalProperties
false
-
- additionalProperties
false
-
keys: Array<string> Required #
- minItems
1- maxItems
64
-
- Default
false
-
Explicit captured target; omission requires a configured caller pane
- additionalProperties
false
-
generation: string Required #
Opaque generation from list_panes
- maxLength
128
-
Valid UTF-8; at most 64 bytes
- maxLength
64- pattern
"^%(0|[1-9][0-9]*)$"
-
Valid UTF-8; at most 1024 bytes
- minLength
1- maxLength
1024
-
Result#
Returns object | object | object | object | object
Matches one or more variants.
-
- additionalProperties
false
-
- additionalProperties
false
-
- additionalProperties
false
-
- additionalProperties
false
-
completed: Array<object> Required #
- maxItems
8
-
- additionalProperties
false
-
failedIndex: integer Required #
- minimum
1- maximum
8
-
originalError: object Required #
- additionalProperties
false
Annotations#
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalse
Protocol data#
Use the complete advertised contract for validation and client integration.
Input schema
{"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"}Output schema
{"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"}