AgentOS Extensions API - v1.0.3
    Preparing search index...

    Tool for executing shell commands

    Implements

    Index

    Constructors

    Properties

    category: "system" = 'system'
    description: "Execute a shell command and return stdout/stderr/exit code." = 'Execute a shell command and return stdout/stderr/exit code.'
    displayName: "Execute Shell Command" = 'Execute Shell Command'
    hasSideEffects: true
    id: "cli-shell-execute-v1" = 'cli-shell-execute-v1'
    inputSchema: JSONSchemaObject = ...
    name: "shell_execute" = 'shell_execute'

    Tool call name used by the LLM / ToolExecutor.

    Methods

    • Execute command

      Parameters

      • input: {
            command: string;
            cwd?: string;
            env?: Record<string, string>;
            timeout?: number;
        }
      • _context: ToolExecutionContext

      Returns Promise<ToolExecutionResult<ExecutionResult>>

    • Validate input

      Parameters

      • input: Record<string, any>

      Returns { errors?: any[]; isValid: boolean }