ssh_cmd_history
Retrieve command execution history from remote SSH sessions, with options to filter by pattern, limit entries, and include output snippets.
Instructions
Retrieve command execution history with optional output snippets.
Returns: List of dictionaries containing command history, ordered from oldest to newest by default. Each entry contains: - id: Command handle ID - command: Executed command - exit_code: Exit status - start_time: Execution start timestamp - end_time: Execution end timestamp - output: Command output snippet (if include_output=True)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of history entries to return | |
| include_output | No | Include command output snippets | |
| output_lines | No | Number of output lines to include (0 for none) | |
| reverse | No | Return in reverse order (newest first) | |
| pattern | No | Filter commands containing this pattern |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |