ToggleAgent

Added json command to toggleAgent