execute_command
Run commands in specified shells like PowerShell, CMD, or Git Bash with a defined working directory for precise system operations.
Instructions
Execute a command in the specified shell (powershell, cmd, or gitbash)
Example usage (PowerShell):
{
"shell": "powershell",
"command": "Get-Process | Select-Object -First 5",
"workingDir": "C:\Users\username"
}
Example usage (CMD):
{
"shell": "cmd",
"command": "dir /b",
"workingDir": "C:\Projects"
}
Example usage (Git Bash):
{
"shell": "gitbash",
"command": "ls -la",
"workingDir": "/c/Users/username"
}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | Yes | Command to execute | |
shell | Yes | Shell to use for command execution | |
workingDir | No | Working directory for command execution (optional) |