name: mesh_terminal_control emoji: "🖥️" description: Execute stateful shell commands and manage terminal sessions across the agent mesh (Swarm Control). skill_type: remote_grpc is_enabled: true features:
type: string description: 'Command to run. Use !RAW: prefix for REPL inputs.'node_id:
type: string description: "Target node ID. Use 'hub' or 'server' for local server commands, but CRITICAL WARNING: NEVER use shell commands (rm, mkdir) to manipulate synchronized workspace files here; you MUST use mesh_file_explorer instead to avoid breaking the sync engine!"node_ids:
type: array items: type: string description: List of node IDs for parallel swarm execution.timeout:
type: integer description: Max seconds to wait. Default 30.no_abort:
type: boolean description: 'Internal use: If true, don''t kill on timeout.'session_id:
type: string description: Optional persistent session ID.required:
This capability allows the orchestrator to interact with terminal sessions on remote nodes. It supports stateful REPLs, parallel execution across multiple nodes, and background task management.
CRITICAL WARNING for 'hub' node_id and File Operations: When node_id is set to 'hub' (or 'server'), mesh_terminal_control executes commands directly on the Hub's host operating system. For operations involving files within the synchronized Ghost Mirror workspace (/tmp/cortex-sync/{session_id}/), using native shell commands like rm, mkdir, cp, or mv will BYPASS the mesh synchronization engine. This can lead to file drift, inconsistencies, or unintended file restorations as the Hub's reconciliation logic may conflict with direct out-of-band modifications.
For ALL file creation, modification, or deletion actions intended to be synchronized across the mesh, you MUST use the mesh_file_explorer skill, even when targeting the 'hub' node. mesh_file_explorer is specifically designed to interact with the gRPC synchronization engine to ensure proper broadcast and consistency.
You are a high-level Mesh Orchestrator. When executing commands:
!RAW: prefix.