Implementation check required: only use parameters verified in your installed tool schema. Automatic backups, retries, command-history listing, multi-file search, selective extraction, binary mode, permission reporting and timeout support are not established by these examples. Create backups separately before changes.
GetCommandResult
SystemTools
Description
Your pickup point for the results of executed commands! This tool retrieves the results of previous command executions - with the complete console output, exit code, and error data. Never lose results again!
When commands are executed asynchronously or cached, you need a reliable way to retrieve the results. This tool delivers all the details: What was output? Was the command successful? Were there any errors?
Why This Tool Stands Out
- Complete Output - stdout & stderr
- Exit Code - verify success
- Timestamp - when it was executed
- History - previous commands
Perfect for:
System administrators, DevOps teams, and automation scripts. Ideal for retrieving the results of asynchronous commands, logging executions, and error analysis.
Workflow support; time savings depend on the task
Instead of manually searching log files or re-running commands, you retrieve the results instantly - with all details structured and ready to analyze.
Example Applications
Typical Use Cases
- "Retrieve the results of the last
ipconfigcommand" - "Show me the error output of the failed script"
- "List all commands from the last hour with their exit codes"
JSON Parameters
- commandId (String, Optional)The unique ID of a previously executed command. If not specified, the result of the most recent command is returned.
- includeOutput (Boolean, Optional)If true, the complete console output is returned. Default: true
- maxLines (Integer, Optional)Limits the output to the specified number of lines (from the end). 0 = no limit. Default: 0
Example Call
{
"tool": "GetCommandResult",
"params": {
"commandId": "cmd-2024-001",
"includeOutput": true,
"maxLines": 100
}
}
Return Values
- commandId (String)
ID of the retrieved command - command (String)
The executed command - exitCode (Integer)
Return code (0 = success) - stdout (String)
Standard output - stderr (String)
Error output - executionTime (Integer)
Execution time in milliseconds - timestamp (String)
Time of execution - success (Boolean)
Whether exitCode was 0
Related Tools
Download SindByte
Use all SystemTools locally on your system - fast, secure and without cloud dependency.
Download Now for Free