{
  "_description": "Voice command definitions for voice app",
  "_version": "1.0.0",
  "commands": [
    {
      "id": "open_file",
      "voice_patterns": [
        "open file {filename}",
        "load file {filename}",
        "show file {filename}",
        "view file {filename}"
      ],
      "action": "open_file",
      "description": "Open a file in the editor or viewer",
      "parameters": {
        "filename": {
          "type": "string",
          "required": true,
          "description": "Name of the file to open"
        }
      },
      "response": {
        "speak": "Opening file {filename}",
        "show": "Opening: {filename}"
      }
    },
    {
      "id": "run_test",
      "voice_patterns": [
        "run test",
        "run tests",
        "test database",
        "test db",
        "check database"
      ],
      "action": "run_test",
      "test_endpoint": "/system/php/testdb.php?app=voice",
      "description": "Run database connectivity test",
      "response": {
        "speak": "Running database test",
        "show": "Running test..."
      }
    },
    {
      "id": "show_status",
      "voice_patterns": [
        "show status",
        "what's the status",
        "what is the status",
        "system status",
        "app status"
      ],
      "action": "show_status",
      "description": "Display current app status",
      "response": {
        "speak": "System status: all systems operational",
        "show": "Status: OK"
      }
    },
    {
      "id": "scroll_down",
      "voice_patterns": [
        "scroll down",
        "page down",
        "move down"
      ],
      "action": "scroll",
      "direction": "down",
      "amount": 500,
      "description": "Scroll the page down",
      "response": {
        "speak": "",
        "show": ""
      }
    },
    {
      "id": "scroll_up",
      "voice_patterns": [
        "scroll up",
        "page up",
        "move up"
      ],
      "action": "scroll",
      "direction": "up",
      "amount": 500,
      "description": "Scroll the page up",
      "response": {
        "speak": "",
        "show": ""
      }
    },
    {
      "id": "start_listening",
      "voice_patterns": [
        "start listening",
        "listen",
        "activate voice",
        "turn on microphone"
      ],
      "action": "start_listening",
      "description": "Start voice recognition",
      "response": {
        "speak": "Listening",
        "show": "Listening..."
      }
    },
    {
      "id": "stop_listening",
      "voice_patterns": [
        "stop listening",
        "stop",
        "deactivate voice",
        "turn off microphone",
        "mute"
      ],
      "action": "stop_listening",
      "description": "Stop voice recognition",
      "response": {
        "speak": "Stopped",
        "show": "Stopped"
      }
    },
    {
      "id": "help",
      "voice_patterns": [
        "help",
        "what can you do",
        "commands",
        "list commands",
        "show commands"
      ],
      "action": "show_help",
      "description": "Show available voice commands",
      "response": {
        "speak": "I can open files, run tests, show status, and scroll. Say help for more information.",
        "show": "Available commands: open file, run test, show status, scroll, help"
      }
    },
    {
      "id": "search",
      "voice_patterns": [
        "search for {query}",
        "find {query}",
        "look for {query}"
      ],
      "action": "search",
      "description": "Search for files or content",
      "parameters": {
        "query": {
          "type": "string",
          "required": true,
          "description": "Search query"
        }
      },
      "response": {
        "speak": "Searching for {query}",
        "show": "Searching: {query}"
      }
    },
    {
      "id": "clear_screen",
      "voice_patterns": [
        "clear screen",
        "clear",
        "reset"
      ],
      "action": "clear",
      "description": "Clear the output screen",
      "response": {
        "speak": "Cleared",
        "show": ""
      }
    }
  ]
}