List SSH Command History
unfour.ssh.list_historyList recent SSH commands in the workspace with connection, timestamp, and exit details. Filter by text, time, or connection to inspect host activity and draft a reusable SSH task.
Instructions
Lists structured SSH command history for the current MCP workspace. Returns connection, command, executedAt, and cwd/exitCode/durationMs when recorded. Results are workspace-scoped and never include terminal buffers or full session logs. Sensitive commands are excluded or replaced with [redacted command]. Use this to inspect recent host activity, then draft a reusable SSH Task for the user to confirm. Do not call unfour.ssh.save_task unless the user explicitly asks to save the draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of history entries to return (default 50, max 200). | |
| query | No | Optional substring filter matched against the stored command text. | |
| since | No | Optional inclusive RFC 3339 lower bound on executedAt. | |
| until | No | Optional inclusive RFC 3339 upper bound on executedAt. | |
| workspaceId | No | Optional workspace ID. Uses the active MCP workspace if omitted. History from other workspaces is never returned. | |
| connectionId | No | Optional saved SSH connection ID. Unknown or out-of-workspace connections return an empty list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| source | Yes | ||
| history | Yes | ||
| workspaceId | Yes |