call_read_tools_batch
-
Calls up to sixteen eligible inspect tools serially; inner tools receive no separate approval, and its nested authority is disclosed. The complete JSON-RPC response is capped at 1,000,000 bytes; a removed nested envelope is marked on its row and counted in truncatedBytes. Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted.
- MCP request method
tools/callSendcall_read_tools_batchas the tool name, with the arguments below.
Arguments
-
onError? ("stop" | "continue")stop or continue; defaults to stop.
-
operations(Array<object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object>)Typed calls within the disclosed nested authority.
- minItems
1- maxItems
16
-
Items (object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object)
Matches exactly one variant.
-
No other properties are accepted.
-
-
-
session_id? (string)Only windows in this session, such as $1.
-
Only windows in the session with this exact name.
No other properties are accepted.
-
-
tool("list_windows")
No other properties are accepted.
-
-
No other properties are accepted.
-
No other properties are accepted.
-
-
-
The session ID, such as $1.
No other properties are accepted.
-
-
tool("get_session_info")
No other properties are accepted.
-
-
-
No other properties are accepted.
-
tool("get_window_info")
No other properties are accepted.
-
-
-
No other properties are accepted.
-
tool("get_pane_info")
No other properties are accepted.
-
-
-
-
Include scrollback rather than only the visible screen. Defaults to false.
-
Maximum lines, keeping the newest. Defaults to 200.
-
The pane to act on, such as %1. Every listing tool returns these.
No other properties are accepted.
-
-
tool("capture_pane")
No other properties are accepted.
-
-
-
-
A cursor returned by an earlier capture.
-
Maximum new lines, keeping the newest. Defaults to 200.
-
The pane to act on, such as %1. Every listing tool returns these.
No other properties are accepted.
-
-
tool("capture_since")
No other properties are accepted.
-
-
-
-
Include scrollback rather than only the visible screen. Defaults to false.
-
Maximum lines, keeping the newest. Defaults to 200.
-
The pane to act on, such as %1. Every listing tool returns these.
No other properties are accepted.
-
-
tool("snapshot_pane")
No other properties are accepted.
-
-
-
-
Maximum matches across all panes. Defaults to 200.
-
max_matches_per_pane? =5(integer)Maximum matching lines per pane. Defaults to 5.
-
The bounded text or regular expression to search for.
- maxLength
4096
-
Treat pattern as a regular expression. Defaults to false.
No other properties are accepted.
-
-
tool("search_panes")
No other properties are accepted.
-
-
-
-
top-left, top-right, bottom-left or bottom-right.
-
The window ID, such as @1.
No other properties are accepted.
-
-
tool("find_pane_by_position")
No other properties are accepted.
-
-
-
-
names(Array<string> | string)One to thirty-two variable names matching [A-Za-z][A-Za-z0-9_]*. One value may be sent on its own, without a list.
- maxItems
32
-
An optional pane context.
No other properties are accepted.
-
-
tool("get_tmux_variables")
No other properties are accepted.
-
-
-
-
Include an inherited value. Defaults to true.
-
The exact option name.
-
global, server, session, window or pane.
-
Required for session scope (an ID such as $1, or a name), window scope (@1) and pane scope (%1).
No other properties are accepted.
-
-
tool("show_option")
No other properties are accepted.
-
-
-
-
session_id? (string)A session, such as $1; omit both for the global environment.
-
A session’s exact name, in place of session_id.
No other properties are accepted.
-
-
tool("show_environment")
No other properties are accepted.
-
-
-
-
One hook name; omit to read all hooks in the scope.
-
global, server, session, window or pane.
-
Required for session scope (an ID such as $1, or a name), window scope (@1) and pane scope (%1).
No other properties are accepted.
-
-
tool("show_hooks")
No other properties are accepted.
-
-
No other arguments are accepted.
Result
Returns object
-
-
-
Matches exactly one variant.
No other properties are accepted.
-
No other properties are accepted.
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Call read tools in a batch"
Capability
- Toolset
- Inspect Request tmux state and terminal output.
- Process reach
none- tmux effects
observe
Every Java 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": {"onError": {"description": "stop or continue; defaults to stop.","enum": ["stop","continue"],"type": "string"},"operations": {"description": "Typed calls within the disclosed nested authority.","items": {"oneOf": [{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {},"required": [],"type": "object"},"tool": {"const": "list_sessions","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {"session_id": {"description": "Only windows in this session, such as $1.","type": "string"},"session_name": {"description": "Only windows in the session with this exact name.","type": "string"}},"required": [],"type": "object"},"tool": {"const": "list_windows","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {},"required": [],"type": "object"},"tool": {"const": "list_panes","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {},"required": [],"type": "object"},"tool": {"const": "get_server_info","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {"session_id": {"description": "The session ID, such as $1.","type": "string"}},"required": ["session_id"],"type": "object"},"tool": {"const": "get_session_info","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {"window_id": {"description": "The window ID, such as @1.","type": "string"}},"required": ["window_id"],"type": "object"},"tool": {"const": "get_window_info","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {"pane_id": {"description": "The pane to act on, such as %1. Every listing tool returns these.","type": "string"}},"required": ["pane_id"],"type": "object"},"tool": {"const": "get_pane_info","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {"history": {"default": false,"description": "Include scrollback rather than only the visible screen. Defaults to false.","type": "boolean"},"max_lines": {"default": 200,"description": "Maximum lines, keeping the newest. Defaults to 200.","type": "integer"},"pane_id": {"description": "The pane to act on, such as %1. Every listing tool returns these.","type": "string"}},"required": ["pane_id"],"type": "object"},"tool": {"const": "capture_pane","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {"cursor": {"description": "A cursor returned by an earlier capture.","type": "string"},"max_lines": {"default": 200,"description": "Maximum new lines, keeping the newest. Defaults to 200.","type": "integer"},"pane_id": {"description": "The pane to act on, such as %1. Every listing tool returns these.","type": "string"}},"required": ["pane_id"],"type": "object"},"tool": {"const": "capture_since","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {"history": {"default": false,"description": "Include scrollback rather than only the visible screen. Defaults to false.","type": "boolean"},"max_lines": {"default": 200,"description": "Maximum lines, keeping the newest. Defaults to 200.","type": "integer"},"pane_id": {"description": "The pane to act on, such as %1. Every listing tool returns these.","type": "string"}},"required": ["pane_id"],"type": "object"},"tool": {"const": "snapshot_pane","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {"max_lines": {"default": 200,"description": "Maximum matches across all panes. Defaults to 200.","type": "integer"},"max_matches_per_pane": {"default": 5,"description": "Maximum matching lines per pane. Defaults to 5.","type": "integer"},"pattern": {"description": "The bounded text or regular expression to search for.","maxLength": 4096,"type": "string"},"regex": {"default": false,"description": "Treat pattern as a regular expression. Defaults to false.","type": "boolean"}},"required": ["pattern"],"type": "object"},"tool": {"const": "search_panes","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {"position": {"description": "top-left, top-right, bottom-left or bottom-right.","type": "string"},"window_id": {"description": "The window ID, such as @1.","type": "string"}},"required": ["window_id","position"],"type": "object"},"tool": {"const": "find_pane_by_position","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {"names": {"description": "One to thirty-two variable names matching [A-Za-z][A-Za-z0-9_]*. One value may be sent on its own, without a list.","items": {"maxLength": 128,"type": "string"},"maxItems": 32,"type": ["array","string"]},"pane": {"description": "An optional pane context.","type": "string"}},"required": ["names"],"type": "object"},"tool": {"const": "get_tmux_variables","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {"effective": {"default": true,"description": "Include an inherited value. Defaults to true.","type": "boolean"},"name": {"description": "The exact option name.","type": "string"},"scope": {"description": "global, server, session, window or pane.","type": "string"},"target": {"description": "Required for session scope (an ID such as $1, or a name), window scope (@1) and pane scope (%1).","type": "string"}},"required": ["name"],"type": "object"},"tool": {"const": "show_option","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {"session_id": {"description": "A session, such as $1; omit both for the global environment.","type": "string"},"session_name": {"description": "A session's exact name, in place of session_id.","type": "string"}},"required": [],"type": "object"},"tool": {"const": "show_environment","type": "string"}},"required": ["tool"],"type": "object"},{"additionalProperties": false,"properties": {"arguments": {"additionalProperties": false,"properties": {"name": {"description": "One hook name; omit to read all hooks in the scope.","type": "string"},"scope": {"description": "global, server, session, window or pane.","type": "string"},"target": {"description": "Required for session scope (an ID such as $1, or a name), window scope (@1) and pane scope (%1).","type": "string"}},"required": [],"type": "object"},"tool": {"const": "show_hooks","type": "string"}},"required": ["tool"],"type": "object"}]},"maxItems": 16,"minItems": 1,"type": "array"}},"required": ["operations"],"type": "object"}Output schema
{"additionalProperties": false,"properties": {"failed": {"type": "integer"},"onError": {"type": "string"},"results": {"items": {"additionalProperties": false,"properties": {"error": {"oneOf": [{"type": "string"},{"type": "null"}]},"index": {"type": "integer"},"result": {"oneOf": [{"additionalProperties": false,"properties": {"_meta": {"type": "object"},"content": {"items": {"type": "object"},"type": "array"},"isError": {"type": "boolean"},"structuredContent": {"type": "object"}},"required": ["content","isError"],"type": "object"},{"type": "null"}]},"resultTruncated": {"type": "boolean"},"success": {"type": "boolean"},"tool": {"type": "string"}},"required": ["index","tool","success","error","result","resultTruncated"],"type": "object"},"type": "array"},"stoppedAt": {"oneOf": [{"type": "integer"},{"type": "null"}]},"succeeded": {"type": "integer"},"truncated": {"type": "boolean"},"truncatedBytes": {"type": "integer"}},"required": ["results","succeeded","failed","stoppedAt","truncated","truncatedBytes","onError"],"type": "object"}