instruction
Open the iFirstAid app and select Heart Attack First Aid.
previous_actions
{"name": "click", "parameters": {"x": 262, "y": 1339}}
active_application
iFirstAid
screen_description
windows {
  bounds_in_screen {
    right: 1080
    bottom: 136
  }
  id: 9
  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: 145
        right: 1027
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        left: 145
        top: 1
        right: 575
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 575
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 145
        top: 1
        right: 363
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 861
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 145
        top: 1
        right: 363
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 861
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 145
        top: 1
        right: 247
        bottom: 136
      }
      class_name: "android.widget.TextView"
      content_description: "11:37 AM"
      text: "11:37"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 247
        top: 1
        right: 363
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 861
        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: 247
        top: 1
        right: 363
        bottom: 136
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 861
        top: 39
        right: 924
        bottom: 97
      }
      class_name: "android.widget.ImageView"
      content_description: "Location requests active"
      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: 247
        top: 1
        right: 305
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "iFirstAid notification: Location"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 305
        top: 1
        right: 363
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Shared controls notification: YouTube"
      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: 531
  title: "iFirstAid"
  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: 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.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2337
      }
      class_name: "androidx.drawerlayout.widget.DrawerLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 286
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 286
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 139
      }
      class_name: "android.view.View"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 139
        right: 1080
        bottom: 286
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 286
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 139
        right: 147
        bottom: 286
      }
      class_name: "android.widget.ImageButton"
      content_description: "Open"
      is_clickable: true
      is_focusable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 174
        right: 698
        bottom: 250
      }
      class_name: "android.widget.ImageView"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 932
        top: 139
        right: 1080
        bottom: 286
      }
      class_name: "androidx.appcompat.widget.LinearLayoutCompat"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 286
        right: 1080
        bottom: 496
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 496
        right: 1080
        bottom: 706
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 732
        right: 1080
        bottom: 890
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 916
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 932
        top: 149
        right: 1080
        bottom: 275
      }
      class_name: "android.widget.TextView"
      content_description: "Check in"
      is_clickable: true
      is_focusable: true
      depth: 10
      tooltip_text: "Check in"
    }
    nodes {
      bounds_in_screen {
        left: 422
        top: 286
        right: 658
        bottom: 346
      }
      class_name: "android.widget.TextView"
      text: "GPS Location"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 346
        right: 1080
        bottom: 412
      }
      class_name: "android.widget.LinearLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 412
        right: 849
        bottom: 455
      }
      class_name: "android.widget.TextView"
      text: "F8MG+V5J, Sehatpur, Faridabad, Haryana 121013, India"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 496
        right: 1080
        bottom: 706
      }
      class_name: "android.widget.FrameLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 13
        top: 732
        right: 347
        bottom: 890
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 360
        top: 732
        right: 707
        bottom: 890
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 720
        top: 732
        right: 1067
        bottom: 890
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 916
        right: 1080
        bottom: 1197
      }
      class_name: "android.widget.RelativeLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1197
        right: 1080
        bottom: 1202
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1202
        right: 1080
        bottom: 1482
      }
      class_name: "android.widget.RelativeLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1482
        right: 1080
        bottom: 1487
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1487
        right: 1080
        bottom: 1767
      }
      class_name: "android.widget.RelativeLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1767
        right: 1080
        bottom: 1772
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1772
        right: 1080
        bottom: 2052
      }
      class_name: "android.widget.RelativeLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 2052
        right: 1080
        bottom: 2057
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 2057
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.RelativeLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 53
        top: 346
        right: 487
        bottom: 392
      }
      class_name: "android.widget.LinearLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 487
        top: 346
        right: 592
        bottom: 412
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 645
        top: 346
        right: 1080
        bottom: 392
      }
      class_name: "android.widget.LinearLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 496
        right: 1080
        bottom: 706
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 13
        top: 732
        right: 347
        bottom: 890
      }
      class_name: "android.widget.LinearLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 360
        top: 732
        right: 707
        bottom: 890
      }
      class_name: "android.widget.LinearLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 720
        top: 732
        right: 1067
        bottom: 890
      }
      class_name: "android.widget.LinearLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 955
        right: 184
        bottom: 1113
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 184
        top: 916
        right: 1080
        bottom: 1197
      }
      class_name: "android.widget.TextView"
      text: "First Aid"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 1241
        right: 184
        bottom: 1399
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 184
        top: 1202
        right: 1080
        bottom: 1482
      }
      class_name: "android.widget.TextView"
      text: "Travel"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 1526
        right: 184
        bottom: 1684
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 184
        top: 1487
        right: 1080
        bottom: 1767
      }
      class_name: "android.widget.TextView"
      text: "Mental Health Support"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 1811
        right: 184
        bottom: 1969
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 184
        top: 1772
        right: 1080
        bottom: 2052
      }
      class_name: "android.widget.TextView"
      text: "Find My Family"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 2096
        right: 184
        bottom: 2254
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 184
        top: 2057
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.TextView"
      text: "Injury Record"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 53
        top: 346
        right: 107
        bottom: 392
      }
      class_name: "android.widget.TextView"
      text: "LAT"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 118
        top: 346
        right: 487
        bottom: 392
      }
      class_name: "android.widget.TextView"
      text: "28.486486486486488"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 645
        top: 346
        right: 728
        bottom: 392
      }
      class_name: "android.widget.TextView"
      text: "LONG"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 739
        top: 346
        right: 1080
        bottom: 392
      }
      class_name: "android.widget.TextView"
      text: "77.32583104401"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 496
        right: 1080
        bottom: 706
      }
      class_name: "android.view.View"
      content_description: "Google Map"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 496
        right: 1080
        bottom: 706
      }
      class_name: "android.widget.RelativeLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 496
        right: 1080
        bottom: 706
      }
      class_name: "android.widget.RelativeLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 48
        top: 740
        right: 311
        bottom: 833
      }
      class_name: "android.widget.ImageView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 65
        top: 833
        right: 295
        bottom: 882
      }
      class_name: "android.widget.TextView"
      text: "CALL FOR HELP"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 481
        top: 740
        right: 586
        bottom: 835
      }
      class_name: "android.widget.ImageView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 439
        top: 835
        right: 627
        bottom: 882
      }
      class_name: "android.widget.TextView"
      text: "EMERGENCY"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 841
        top: 740
        right: 946
        bottom: 833
      }
      class_name: "android.widget.ImageView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 786
        top: 833
        right: 1001
        bottom: 882
      }
      class_name: "android.widget.TextView"
      text: "PERFORM CPR"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 487
        top: 496
        right: 592
        bottom: 601
      }
      class_name: "android.view.View"
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 1054
        top: 522
        right: 1054
        bottom: 680
      }
      class_name: "android.widget.RelativeLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 13
        top: 635
        right: 171
        bottom: 693
      }
      class_name: "android.widget.ImageView"
      depth: 13
    }
  }
}

assistant
!FUNCTIONCALL{"name": "click", "parameters": {"x": 631, "y": 1056}}
[{"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"]}}}]