instruction
Create a group chat named friends with my both friends Amelia Miller and Richard Wagner on the Messenger app.
previous_actions
{"name": "long_press", "parameters": {"x": 592, "y": 771}}
{"name": "click", "parameters": {"x": 603, "y": 1801}}
active_application
Messenger
screen_description
windows {
  bounds_in_screen {
    right: 1080
    bottom: 136
  }
  id: 2
  layer: 1
  window_type: TYPE_SYSTEM
  tree {
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        left: 47
        right: 1027
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 454
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 454
        top: 1
        right: 599
        bottom: 136
      }
      class_name: "android.view.View"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 599
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 924
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 924
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 130
        bottom: 136
      }
      class_name: "android.widget.TextView"
      content_description: "2:36 PM"
      text: "2:36"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 130
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 924
        top: 1
        right: 986
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 986
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      content_description: "Battery charging, 100 percent."
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 130
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 924
        top: 39
        right: 970
        bottom: 97
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Wifi signal full."
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 986
        top: 51
        right: 1006
        bottom: 85
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 130
        top: 1
        right: 188
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Fit notification: Currently tracking walking"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 188
        top: 1
        right: 246
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Snapchat notification: Ano Li: Ano Li"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 246
        top: 1
        right: 304
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Chat notification: Richard Wagner"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 304
        top: 1
        right: 362
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Messenger notification: Sharing Live Location"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 362
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "System update notification: Get Android 14 now.\r\nMore personal, protective, and accessible.\r"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 39
        right: 970
        bottom: 97
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 48
        right: 970
        bottom: 87
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 48
        right: 970
        bottom: 87
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
  }
}
windows {
  bounds_in_screen {
    right: 1080
    bottom: 2400
  }
  id: 7355
  title: "Messenger"
  window_type: TYPE_APPLICATION
  is_active: true
  is_focused: true
  tree {
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2400
      }
      class_name: "android.widget.FrameLayout"
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.view.View"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        top: 2337
        right: 1080
        bottom: 2400
      }
      class_name: "android.view.View"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 283
      }
      class_name: "android.view.ViewGroup"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 283
        right: 1080
        bottom: 429
      }
      class_name: "android.widget.EditText"
      hint_text: "Group name (optional)"
      text: "Group name (optional)"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 450
        right: 1038
        bottom: 555
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 576
        right: 1080
        bottom: 857
      }
      class_name: "android.view.ViewGroup"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 857
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 11
        top: 147
        right: 137
        bottom: 273
      }
      class_name: "android.widget.Button"
      content_description: "Back"
      is_clickable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 169
        top: 179
        right: 528
        bottom: 241
      }
      class_name: "android.view.ViewGroup"
      content_description: "Choose friends"
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 890
        top: 162
        right: 1080
        bottom: 257
      }
      class_name: "android.widget.Button"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 474
        right: 287
        bottom: 531
      }
      class_name: "android.widget.EditText"
      content_description: "Search"
      text: "Search"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 576
        right: 1080
        bottom: 857
      }
      class_name: "android.view.ViewGroup"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 857
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 961
        top: 188
        right: 1009
        bottom: 231
      }
      class_name: "android.view.ViewGroup"
      content_description: "OK"
      text: "OK"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 576
        right: 1080
        bottom: 857
      }
      class_name: "androidx.recyclerview.widget.RecyclerView"
      is_focusable: true
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 857
        right: 1080
        bottom: 2337
      }
      class_name: "androidx.recyclerview.widget.RecyclerView"
      is_focusable: true
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 576
        right: 21
        bottom: 857
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 21
        top: 576
        right: 231
        bottom: 857
      }
      class_name: "android.view.ViewGroup"
      content_description: "Remove Richard from selection."
      is_clickable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 231
        top: 576
        right: 441
        bottom: 857
      }
      class_name: "android.view.ViewGroup"
      content_description: "Remove Amelia from selection."
      is_clickable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 441
        top: 576
        right: 462
        bottom: 857
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 857
        right: 1080
        bottom: 858
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 858
        right: 1080
        bottom: 859
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 859
        right: 1080
        bottom: 985
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 985
        right: 1080
        bottom: 1132
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 53
        top: 587
        right: 200
        bottom: 734
      }
      class_name: "android.widget.ImageView"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 152
        top: 582
        right: 205
        bottom: 635
      }
      class_name: "android.view.ViewGroup"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 63
        top: 755
        right: 188
        bottom: 806
      }
      class_name: "android.view.ViewGroup"
      content_description: "Richard"
      text: "Richard"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 263
        top: 587
        right: 410
        bottom: 734
      }
      class_name: "android.widget.ImageView"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 362
        top: 582
        right: 415
        bottom: 635
      }
      class_name: "android.view.ViewGroup"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 279
        top: 755
        right: 393
        bottom: 806
      }
      class_name: "android.view.ViewGroup"
      content_description: "Amelia"
      text: "Amelia"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 859
        right: 1080
        bottom: 985
      }
      class_name: "android.view.ViewGroup"
      content_description: "Suggested"
      is_focusable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 985
        right: 1080
        bottom: 1132
      }
      class_name: "android.view.ViewGroup"
      content_description: "Amelia Miller"
      is_clickable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 904
        right: 1038
        bottom: 955
      }
      class_name: "android.view.ViewGroup"
      content_description: "Suggested"
      text: "Suggested"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 985
        right: 1080
        bottom: 1132
      }
      class_name: "android.view.ViewGroup"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 1011
        right: 137
        bottom: 1106
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 179
        top: 1030
        right: 890
        bottom: 1087
      }
      class_name: "android.view.ViewGroup"
      content_description: "Amelia Miller"
      text: "Amelia Miller"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 932
        top: 1006
        right: 1038
        bottom: 1112
      }
      class_name: "android.widget.CompoundButton"
      is_checkable: true
      is_checked: true
      is_clickable: true
      is_focusable: true
      depth: 11
    }
  }
}

assistant
!FUNCTIONCALL{"name": "click", "parameters": {"x": 984, "y": 209}}
[{"type": "function", "function": {"name": "click", "description": "Click on a specific location on the screen", "parameters": {"type": "object", "properties": {"x": {"type": "integer", "description": "Coordinate on the x axis to click."}, "y": {"type": "integer", "description": "Coordinate on the y axis to click."}}, "required": ["x", "y"]}}}, {"type": "function", "function": {"name": "long_press", "description": "Long press on a specific location on the screen.", "parameters": {"type": "object", "properties": {"x": {"type": "integer", "description": "Coordinate on the x axis to long press."}, "y": {"type": "integer", "description": "Coordinate on the y axis to long press."}}, "required": ["x", "y"]}}}, {"type": "function", "function": {"name": "input_text", "description": "Write text inside of an already selected text field, typically this is preceeded by a 'click' action that selects a field on the screen to type into.", "parameters": {"type": "object", "properties": {"text": {"type": "string", "description": "The text to input in the field."}}, "required": ["text"]}}}, {"type": "function", "function": {"name": "scroll", "description": "Scroll a fixed amount in a specific direction.", "parameters": {"type": "object", "properties": {"direction": {"type": "string", "enum": ["up", "down", "left", "right"], "description": "The direction to scroll in."}}, "required": ["direction"]}}}, {"type": "function", "function": {"name": "navigate_home", "description": "Navigate to the home screen from the current screen you are on.", "parameters": {"type": "object", "properties": {}}}}, {"type": "function", "function": {"name": "navigate_back", "description": "Navigate back to the previous page.", "parameters": {"type": "object", "properties": {}}}}, {"type": "function", "function": {"name": "open_app", "description": "Open an application.", "parameters": {"type": "object", "properties": {"app_name": {"type": "string", "description": "The name of the application to open."}}, "required": ["app_name"]}}}, {"type": "function", "function": {"name": "wait", "description": "Wait for a fixed amount of time. This is useful when you need to 'await' the results of a page that is still loading.", "parameters": {"type": "object", "properties": {}}}}, {"type": "function", "function": {"name": "status", "description": "Once you have completed the work required to fulfill an instruction, report your status by calling this function with 'successful'. If you find that a task is impossible to complete,  call this with 'infeasible' after finding that information.", "parameters": {"type": "object", "properties": {"goal_status": {"type": "string", "enum": ["successful", "infeasible"], "description": "The status of the completion of a instruction, either 'successful' or 'infeasible', called to conclude an episode."}}, "required": ["goal_status"]}}}]