execute_command
Execute system commands securely with safety validation, detailed output, and predefined time limits. Designed for basic operations within restricted directories, ensuring controlled and safe command execution.
Instructions
Execute a system command with security restrictions. Validates commands for safety and provides detailed output. Limited to basic system operations with security checks.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
captureOutput | No | Whether to capture and return command output | |
command | Yes | The command to execute | |
timeout | No | Maximum execution time in milliseconds (max 30s) | |
workingDir | No | Working directory for command execution |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"captureOutput": {
"default": true,
"description": "Whether to capture and return command output",
"type": "boolean"
},
"command": {
"description": "The command to execute",
"type": "string"
},
"timeout": {
"default": 5000,
"description": "Maximum execution time in milliseconds (max 30s)",
"exclusiveMinimum": 0,
"maximum": 30000,
"type": "integer"
},
"workingDir": {
"description": "Working directory for command execution",
"type": "string"
}
},
"required": [
"command"
],
"type": "object"
}