ssh_history
View the in-memory log of SSH commands run in the current session, with timestamps, server, duration, and success status. Filter by server, text, or outcome; defaults to 20 recent entries.
Instructions
Returns the in-memory log of SSH commands previously run through this server process during the current session, formatted with timestamps, server, duration, and success status. Purely local and read-only: it opens no SSH connection and does not persist across restarts. Optional filters narrow the results by server name, by success or failure, and by a search substring in the command text; limit defaults to 20 most recent entries. Does not expose command output, only the commands and their outcomes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ssh_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of commands to show (default: 20) | |
| search | No | Search in commands | |
| server | No | Filter by server name | |
| success | No | Filter by success/failure |