execute_command
Run commands locally or on remote hosts using SSH with session persistence and environment variable support. Maintain terminal state for efficient workflows in specific environments like conda.
Instructions
Execute commands on remote hosts or locally (This tool can be used for both remote hosts and the current machine)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | Yes | Command to execute. Before running commands, it's best to determine the system type (Mac, Linux, etc.) | |
env | No | Environment variables | |
host | No | Host to connect to (optional, if not provided the command will be executed locally) | |
session | No | Session name, defaults to 'default'. The same session name will reuse the same terminal environment for 20 minutes, which is useful for operations requiring specific environments like conda. | default |
username | No | Username for SSH connection (required when host is specified) |