instruction
Some emails that are present in my inbox I want to mark as read.
previous_actions
{"name": "open_app", "parameters": {"app_name": "Gmail"}}
{"name": "click", "parameters": {"x": 116, "y": 219}}
active_application
screen_description
windows {
  bounds_in_screen {
    right: 1080
    bottom: 136
  }
  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: 198
        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: 198
        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: 140
        bottom: 136
      }
      class_name: "android.widget.TextView"
      content_description: "11:05 PM"
      text: "11:05"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 140
        top: 1
        right: 198
        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: 140
        top: 1
        right: 198
        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 three bars."
      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: 140
        top: 1
        right: 198
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "MX Player notification: आज फिर तुमपे प्यार आया है💕"
      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: 588
  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: 2400
      }
      class_name: "android.widget.LinearLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2400
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2400
      }
      class_name: "android.widget.FrameLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2400
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2400
      }
      class_name: "androidx.drawerlayout.widget.DrawerLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2400
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2400
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2127
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 2127
        right: 1080
        bottom: 2400
      }
      class_name: "android.widget.FrameLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2127
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 870
        top: 1938
        right: 1017
        bottom: 2085
      }
      class_name: "android.widget.ImageButton"
      content_description: "Create contact"
      is_clickable: true
      is_focusable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 2127
        right: 1080
        bottom: 2127
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 2127
        right: 1080
        bottom: 2127
      }
      class_name: "android.widget.FrameLayout"
      is_clickable: true
      is_focusable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 2127
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2127
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 63
        top: 2190
        right: 1017
        bottom: 2127
      }
      class_name: "android.widget.ScrollView"
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 2127
        right: 360
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Contacts"
      is_focusable: true
      is_selected: true
      depth: 10
      tooltip_text: "Contacts"
    }
    nodes {
      bounds_in_screen {
        left: 360
        top: 2127
        right: 720
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Highlights"
      is_clickable: true
      is_focusable: true
      depth: 10
      tooltip_text: "Highlights"
    }
    nodes {
      bounds_in_screen {
        left: 720
        top: 2127
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Fix & manage"
      is_clickable: true
      is_focusable: true
      depth: 10
      tooltip_text: "Fix & manage"
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2127
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 63
        top: 2190
        right: 1017
        bottom: 2127
      }
      class_name: "android.view.ViewGroup"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 96
        top: 2159
        right: 264
        bottom: 2243
      }
      class_name: "android.widget.FrameLayout"
      is_selected: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 111
        top: 2261
        right: 249
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      is_selected: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 456
        top: 2159
        right: 624
        bottom: 2243
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 463
        top: 2261
        right: 616
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 816
        top: 2159
        right: 984
        bottom: 2243
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 797
        top: 2261
        right: 1002
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2127
      }
      class_name: "androidx.slidingpanelayout.widget.SlidingPaneLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 63
        top: 2190
        right: 221
        bottom: 2127
      }
      class_name: "android.widget.ImageView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 263
        top: 2190
        right: 263
        bottom: 2127
      }
      class_name: "android.widget.TextView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 640
        top: 2258
        right: 640
        bottom: 2127
      }
      class_name: "android.widget.TextView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 534
        top: 2313
        right: 765
        bottom: 2127
      }
      class_name: "android.widget.Button"
      text: "Not now"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 786
        top: 2313
        right: 1017
        bottom: 2127
      }
      class_name: "android.widget.Button"
      text: "Try it"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 96
        top: 2159
        right: 264
        bottom: 2243
      }
      class_name: "android.view.View"
      is_selected: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 148
        top: 2169
        right: 211
        bottom: 2232
      }
      class_name: "android.widget.ImageView"
      is_selected: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 111
        top: 2261
        right: 249
        bottom: 2308
      }
      class_name: "android.widget.TextView"
      text: "Contacts"
      is_selected: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 506
        top: 2159
        right: 574
        bottom: 2243
      }
      class_name: "android.view.View"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 508
        top: 2169
        right: 571
        bottom: 2232
      }
      class_name: "android.widget.ImageView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 463
        top: 2261
        right: 616
        bottom: 2308
      }
      class_name: "android.widget.TextView"
      text: "Highlights"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 866
        top: 2159
        right: 934
        bottom: 2243
      }
      class_name: "android.view.View"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 868
        top: 2169
        right: 931
        bottom: 2232
      }
      class_name: "android.widget.ImageView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 797
        top: 2261
        right: 1002
        bottom: 2308
      }
      class_name: "android.widget.TextView"
      text: "Fix & manage"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2127
      }
      class_name: "android.widget.FrameLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2127
      }
      class_name: "android.view.ViewGroup"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 304
      }
      class_name: "android.widget.LinearLayout"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        top: 278
        right: 1080
        bottom: 2127
      }
      class_name: "android.widget.FrameLayout"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 157
        right: 1038
        bottom: 283
      }
      class_name: "android.widget.EditText"
      hint_text: "Search contacts"
      text: "Search contacts"
      is_clickable: true
      is_focusable: true
      depth: 16
    }
    nodes {
      bounds_in_screen {
        top: 278
        right: 1080
        bottom: 2127
      }
      class_name: "android.view.ViewGroup"
      depth: 16
    }
    nodes {
      bounds_in_screen {
        left: 540
        top: 1202
        right: 540
        bottom: 1202
      }
      class_name: "android.widget.LinearLayout"
      depth: 16
    }
    nodes {
      bounds_in_screen {
        left: 53
        top: 157
        right: 179
        bottom: 283
      }
      class_name: "android.widget.ImageButton"
      content_description: "Open navigation drawer"
      is_clickable: true
      is_focusable: true
      depth: 17
      tooltip_text: "Open navigation drawer"
    }
    nodes {
      bounds_in_screen {
        left: 179
        top: 189
        right: 486
        bottom: 251
      }
      class_name: "android.widget.TextView"
      hint_text: "Search contacts"
      text: "Search contacts"
      depth: 17
    }
    nodes {
      bounds_in_screen {
        left: 778
        top: 157
        right: 1038
        bottom: 283
      }
      class_name: "android.support.v7.widget.LinearLayoutCompat"
      depth: 17
    }
    nodes {
      bounds_in_screen {
        top: 278
        right: 1080
        bottom: 2127
      }
      class_name: "android.widget.LinearLayout"
      depth: 17
    }
    nodes {
      bounds_in_screen {
        left: 778
        top: 157
        right: 904
        bottom: 283
      }
      class_name: "android.support.v7.widget.LinearLayoutCompat"
      depth: 18
    }
    nodes {
      bounds_in_screen {
        left: 904
        top: 157
        right: 1038
        bottom: 283
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Signed in as Jules Dupont julesdupont205@gmail.com\nAccount and settings."
      is_clickable: true
      is_focusable: true
      depth: 18
    }
    nodes {
      bounds_in_screen {
        top: 307
        right: 1080
        bottom: 433
      }
      class_name: "android.widget.HorizontalScrollView"
      is_focusable: true
      is_scrollable: true
      depth: 18
    }
    nodes {
      bounds_in_screen {
        top: 433
        right: 1080
        bottom: 2127
      }
      class_name: "android.widget.ScrollView"
      is_focusable: true
      depth: 18
    }
    nodes {
      bounds_in_screen {
        left: 778
        top: 157
        right: 904
        bottom: 283
      }
      class_name: "android.widget.ImageView"
      content_description: "More options"
      is_clickable: true
      is_focusable: true
      is_long_clickable: true
      depth: 19
      tooltip_text: "More options"
    }
    nodes {
      bounds_in_screen {
        left: 904
        top: 157
        right: 1030
        bottom: 283
      }
      class_name: "android.widget.FrameLayout"
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 307
        right: 1080
        bottom: 433
      }
      class_name: "android.view.ViewGroup"
      depth: 19
    }
    nodes {
      bounds_in_screen {
        top: 433
        right: 1080
        bottom: 2127
      }
      class_name: "android.view.ViewGroup"
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 912
        top: 165
        right: 912
        bottom: 165
      }
      class_name: "android.widget.FrameLayout"
      depth: 20
    }
    nodes {
      bounds_in_screen {
        left: 912
        top: 165
        right: 1022
        bottom: 275
      }
      class_name: "android.widget.ImageView"
      depth: 20
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 307
        right: 440
        bottom: 433
      }
      class_name: "android.widget.Button"
      text: "Phone contacts"
      is_checkable: true
      is_clickable: true
      is_focusable: true
      depth: 20
    }
    nodes {
      bounds_in_screen {
        left: 461
        top: 307
        right: 841
        bottom: 433
      }
      class_name: "android.widget.Button"
      text: "Email contacts"
      is_checkable: true
      is_clickable: true
      is_focusable: true
      depth: 20
    }
    nodes {
      bounds_in_screen {
        left: 862
        top: 307
        right: 1080
        bottom: 433
      }
      class_name: "android.widget.Button"
      text: "Company"
      is_checkable: true
      is_clickable: true
      is_focusable: true
      depth: 20
    }
    nodes {
      bounds_in_screen {
        top: 433
        right: 1080
        bottom: 433
      }
      class_name: "android.widget.FrameLayout"
      depth: 20
    }
    nodes {
      bounds_in_screen {
        top: 433
        right: 1080
        bottom: 433
      }
      class_name: "android.widget.FrameLayout"
      depth: 20
    }
    nodes {
      bounds_in_screen {
        left: 278
        top: 829
        right: 803
        bottom: 1354
      }
      class_name: "android.widget.ImageView"
      depth: 20
    }
    nodes {
      bounds_in_screen {
        left: 155
        top: 1438
        right: 926
        bottom: 1530
      }
      class_name: "android.widget.TextView"
      text: "No contacts in this account"
      depth: 20
    }
    nodes {
      bounds_in_screen {
        left: 273
        top: 1551
        right: 808
        bottom: 1606
      }
      class_name: "android.widget.TextView"
      text: "1 contact in your other accounts"
      depth: 20
    }
  }
}

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