get_command_history
Retrieves a specified number of recently executed command entries from the Windows CLI MCP Server, including command details, outputs, timestamps, and exit codes for auditing or troubleshooting.
Instructions
Get the history of executed commands
Example usage:
{
"limit": 5
}
Example response:
[
{
"command": "Get-Process",
"output": "...",
"timestamp": "2024-03-20T10:30:00Z",
"exitCode": 0
}
]
Input Schema
Name | Required | Description | Default |
---|---|---|---|
limit | No | Maximum number of history entries to return (default: 10, max: 1000) |