tById('commandsList').innerHTML = 
                    '<div class="error">Failed to load commands. Please check if the API is running.</div>';
            }
        }

        // Load all commands from the API
        async function loadCommands() {
            try {
                const response = await fetch(`${API_BASE_URL}?cmd=LIST_COMMANDS&format=full`);
                const data = await response.json();
                
                if (data.success) {
                    allCommands = data.data