instruction
In the Phonebook app, view contacts by group.by group.
previous_actions
{"name": "open_app", "parameters": {"app_name": "Phonebook"}}
{"name": "click", "parameters": {"x": 892, "y": 325}}
active_application
Phonebook
screen_description
windows {
  bounds_in_screen {
    right: 1080
    bottom: 118
  }
  id: 8
  layer: 2
  window_type: TYPE_SYSTEM
  tree {
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        left: 47
        right: 1027
        bottom: 118
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 454
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 454
        top: 1
        right: 599
        bottom: 118
      }
      class_name: "android.view.View"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 599
        top: 1
        right: 1006
        bottom: 118
      }
      class_name: "android.widget.LinearLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 454
        bottom: 118
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 819
        top: 1
        right: 1006
        bottom: 118
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 130
        bottom: 118
      }
      class_name: "android.widget.TextView"
      content_description: "3:49 PM"
      text: "3:49"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 130
        top: 1
        right: 454
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 819
        top: 1
        right: 881
        bottom: 118
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 881
        top: 1
        right: 1006
        bottom: 118
      }
      class_name: "android.widget.LinearLayout"
      content_description: "Battery charging, 100 percent."
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 130
        top: 1
        right: 454
        bottom: 118
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 819
        top: 30
        right: 865
        bottom: 88
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Wifi signal full."
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 881
        top: 42
        right: 901
        bottom: 76
      }
      class_name: "android.widget.ImageView"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 901
        top: 1
        right: 1006
        bottom: 118
      }
      class_name: "android.widget.TextView"
      text: "100%"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 130
        top: 1
        right: 454
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 826
        top: 30
        right: 865
        bottom: 88
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 130
        top: 1
        right: 188
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "Google Play Store notification: Complete setup by installing apps"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 188
        top: 1
        right: 246
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "Google notification: 33° in New Delhi"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 826
        top: 39
        right: 865
        bottom: 78
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 826
        top: 39
        right: 865
        bottom: 78
      }
      class_name: "android.widget.ImageView"
      depth: 10
    }
  }
}
windows {
  bounds_in_screen {
    top: 672
    right: 105
    bottom: 869
  }
  id: 1929
  layer: 1
  window_type: TYPE_SYSTEM
  tree {
    nodes {
      bounds_in_screen {
        top: 672
        right: 105
        bottom: 869
      }
      class_name: "android.widget.LinearLayout"
      is_long_clickable: true
    }
    nodes {
      bounds_in_screen {
        top: 672
        right: 105
        bottom: 869
      }
      class_name: "android.widget.RelativeLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        top: 672
        right: 105
        bottom: 869
      }
      class_name: "android.widget.ImageView"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        top: 699
        right: 105
        bottom: 842
      }
      class_name: "android.widget.LinearLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        top: 699
        right: 44
        bottom: 743
      }
      class_name: "android.widget.ImageView"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        top: 732
        right: 44
        bottom: 776
      }
      class_name: "android.widget.ImageView"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        top: 765
        right: 44
        bottom: 809
      }
      class_name: "android.widget.ImageView"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        top: 798
        right: 44
        bottom: 842
      }
      class_name: "android.widget.ImageView"
      depth: 3
    }
  }
}
windows {
  bounds_in_screen {
    right: 1080
    bottom: 2400
  }
  id: 1980
  title: "Phonebook"
  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.LinearLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 118
      }
      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: 118
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        top: 118
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        top: 118
        right: 1080
        bottom: 265
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        top: 265
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        top: 118
        right: 1080
        bottom: 265
      }
      class_name: "android.view.ViewGroup"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 265
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 118
        right: 147
        bottom: 265
      }
      class_name: "android.widget.ImageButton"
      content_description: "Navigate up"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 189
        top: 156
        right: 444
        bottom: 227
      }
      class_name: "android.widget.TextView"
      text: "Coworkers"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 826
        top: 118
        right: 1080
        bottom: 265
      }
      class_name: "androidx.appcompat.widget.LinearLayoutCompat"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 265
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.RelativeLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 891
        top: 2148
        right: 1038
        bottom: 2295
      }
      class_name: "android.widget.ImageButton"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 826
        top: 128
        right: 953
        bottom: 254
      }
      class_name: "android.widget.TextView"
      content_description: "Send SMS to group"
      is_clickable: true
      is_focusable: true
      depth: 7
      tooltip_text: "Send SMS to group"
    }
    nodes {
      bounds_in_screen {
        left: 953
        top: 128
        right: 1080
        bottom: 254
      }
      class_name: "android.widget.TextView"
      content_description: "Send email to group"
      is_clickable: true
      is_focusable: true
      depth: 7
      tooltip_text: "Send email to group"
    }
    nodes {
      bounds_in_screen {
        top: 265
        right: 1080
        bottom: 2337
      }
      class_name: "androidx.recyclerview.widget.RecyclerView"
      is_focusable: true
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 953
        top: 265
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 265
        right: 1080
        bottom: 433
      }
      class_name: "android.widget.FrameLayout"
      is_clickable: true
      is_focusable: true
      is_long_clickable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 433
        right: 1080
        bottom: 601
      }
      class_name: "android.widget.FrameLayout"
      is_clickable: true
      is_focusable: true
      is_long_clickable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 601
        right: 1080
        bottom: 769
      }
      class_name: "android.widget.FrameLayout"
      is_clickable: true
      is_focusable: true
      is_long_clickable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 769
        right: 1080
        bottom: 937
      }
      class_name: "android.widget.FrameLayout"
      is_clickable: true
      is_focusable: true
      is_long_clickable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 985
        top: 265
        right: 1027
        bottom: 358
      }
      class_name: "android.widget.TextView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 1059
        top: 265
        right: 1080
        bottom: 370
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 265
        right: 1080
        bottom: 433
      }
      class_name: "android.widget.RelativeLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 433
        right: 1080
        bottom: 601
      }
      class_name: "android.widget.RelativeLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 601
        right: 1080
        bottom: 769
      }
      class_name: "android.widget.RelativeLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 769
        right: 1080
        bottom: 937
      }
      class_name: "android.widget.RelativeLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 286
        right: 142
        bottom: 412
      }
      class_name: "android.widget.ImageView"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 142
        top: 317
        right: 1038
        bottom: 380
      }
      class_name: "android.widget.TextView"
      text: "Emily Jane"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 454
        right: 142
        bottom: 580
      }
      class_name: "android.widget.ImageView"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 142
        top: 485
        right: 1038
        bottom: 548
      }
      class_name: "android.widget.TextView"
      text: "Penny Hofsteader"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 622
        right: 142
        bottom: 748
      }
      class_name: "android.widget.ImageView"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 142
        top: 653
        right: 1038
        bottom: 716
      }
      class_name: "android.widget.TextView"
      text: "Rue Bennett"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 790
        right: 142
        bottom: 916
      }
      class_name: "android.widget.ImageView"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 142
        top: 821
        right: 1038
        bottom: 884
      }
      class_name: "android.widget.TextView"
      text: "Sheldon Cooper"
      depth: 10
    }
  }
}

assistant
!FUNCTIONCALL{"name": "status", "parameters": {"goal_status": "successful"}}
[{"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"]}}}]