run_safe_command__execute
Execute a shell command securely in a validated working directory, with structured audit metadata and no shell eval.
Instructions
Execute a command safely with structured security and audit metadata. @remarks The command is executed without shell eval in a validated working directory. Runtime control behaviors are internal-only and not caller-configurable. On darwin/arm64, pre-execution auth prefers native Swift+WKWebView and automatically falls back to OSA. @param command Executable name to run (for example: ls, cat, grep). @param args_json JSON array string of positional arguments, for example ["-la", "./src"]. @param working_dir Absolute working directory where the command will run. @param __mcp_response_mode Optional response mode: content (default) or structuredContent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| args_json | Yes | ||
| working_dir | Yes | ||
| __mcp_response_mode | No | content |