instruction
Open the Red Cross emergency app and select the heart attack emergency service.
previous_actions
active_application
Red Cross 1
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: 231
        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: 145
        top: 1
        right: 231
        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: 145
        top: 1
        right: 231
        bottom: 136
      }
      class_name: "android.widget.TextView"
      content_description: "8:11 AM"
      text: "8:11"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 231
        top: 1
        right: 231
        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: 231
        top: 1
        right: 231
        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: 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: 269
  title: "Red Cross 1"
  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 {
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 283
      }
      class_name: "android.view.ViewGroup"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        right: 1080
      }
      class_name: "android.view.ViewGroup"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 283
      }
      class_name: "android.view.ViewGroup"
      depth: 16
    }
    nodes {
      bounds_in_screen {
        top: 283
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.ScrollView"
      is_focusable: true
      is_scrollable: true
      depth: 16
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 283
      }
      class_name: "android.view.ViewGroup"
      depth: 17
    }
    nodes {
      bounds_in_screen {
        top: 283
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 17
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 283
      }
      class_name: "android.view.ViewGroup"
      depth: 18
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 283
      }
      class_name: "android.view.ViewGroup"
      depth: 18
    }
    nodes {
      bounds_in_screen {
        left: 278
        top: 283
        right: 803
        bottom: -279
      }
      class_name: "android.widget.ImageView"
      depth: 18
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 283
        right: 1054
        bottom: -58
      }
      class_name: "android.widget.TextView"
      text: "Minimize contact with the person\'s blood. If have gloves available, user gloves to protect you. Minimize contact with the person\'s blood. If have gloves available, user gloves to protect you."
      depth: 18
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 283
        right: 1080
        bottom: 75
      }
      class_name: "android.widget.TextView"
      text: "Before Checklist"
      depth: 18
    }
    nodes {
      bounds_in_screen {
        top: 283
        right: 1080
        bottom: 327
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 18
    }
    nodes {
      bounds_in_screen {
        top: 327
        right: 1080
        bottom: 546
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 18
    }
    nodes {
      bounds_in_screen {
        top: 546
        right: 1080
        bottom: 765
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 18
    }
    nodes {
      bounds_in_screen {
        top: 765
        right: 1080
        bottom: 984
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 18
    }
    nodes {
      bounds_in_screen {
        top: 984
        right: 1080
        bottom: 1203
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 18
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 1256
        right: 1080
        bottom: 1310
      }
      class_name: "android.widget.TextView"
      text: "During"
      depth: 18
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 1388
        right: 158
        bottom: 1520
      }
      class_name: "android.widget.TextView"
      text: "1"
      depth: 18
    }
    nodes {
      bounds_in_screen {
        left: 184
        top: 1388
        right: 1054
        bottom: 1555
      }
      class_name: "android.widget.TextView"
      text: "Minimize contact with the person\'s blood. If have gloves available, user gloves to protect you."
      depth: 18
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 1660
        right: 158
        bottom: 1792
      }
      class_name: "android.widget.TextView"
      text: "2"
      depth: 18
    }
    nodes {
      bounds_in_screen {
        left: 184
        top: 1660
        right: 1054
        bottom: 1827
      }
      class_name: "android.widget.TextView"
      text: "Put this bag in another container with ice. However the ice should never come in direct contact with the amputated part."
      depth: 18
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 1932
        right: 158
        bottom: 2064
      }
      class_name: "android.widget.TextView"
      text: "3"
      depth: 18
    }
    nodes {
      bounds_in_screen {
        left: 184
        top: 1932
        right: 1054
        bottom: 2099
      }
      class_name: "android.widget.TextView"
      text: "Mark the package with the name of the casualty and the time of packing. Always wash your hands after giving care."
      depth: 18
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 2231
        right: 1080
        bottom: 2285
      }
      class_name: "android.widget.TextView"
      text: "Related first aid"
      depth: 18
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 283
      }
      class_name: "android.view.ViewGroup"
      depth: 19
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.view.ViewGroup"
      depth: 19
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 137
        bottom: 283
      }
      class_name: "android.view.ViewGroup"
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 179
        top: 136
        right: 544
        bottom: 283
      }
      class_name: "android.view.ViewGroup"
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 586
        top: 136
        right: 1080
        bottom: 283
      }
      class_name: "android.view.ViewGroup"
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 283
        right: 121
        bottom: 248
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 147
        top: 283
        right: 1054
        bottom: 248
      }
      class_name: "android.widget.TextView"
      text: "Turn the person on his back."
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 353
        right: 121
        bottom: 448
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 147
        top: 353
        right: 1054
        bottom: 467
      }
      class_name: "android.widget.TextView"
      text: "Verify if the victim is breathing by listening, looking and feeling."
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 572
        right: 121
        bottom: 667
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 147
        top: 572
        right: 1054
        bottom: 686
      }
      class_name: "android.widget.TextView"
      text: "If the victim is not breathing: do a chin lift and clear the airways if needed."
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 791
        right: 121
        bottom: 886
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 147
        top: 791
        right: 1054
        bottom: 905
      }
      class_name: "android.widget.TextView"
      text: "First place the heel of your hand in center of the person\'s chest."
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 1010
        right: 121
        bottom: 1105
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 147
        top: 1010
        right: 1054
        bottom: 1124
      }
      class_name: "android.widget.TextView"
      text: "Press firmly about 6 cm downwards (adult) and release the pressure."
      depth: 19
    }
    nodes {
      bounds_in_screen {
        left: 29
        top: 170
        right: 108
        bottom: 249
      }
      class_name: "android.widget.Button"
      content_description: "Red Cross App, back"
      is_clickable: true
      is_focusable: true
      depth: 20
    }
    nodes {
      bounds_in_screen {
        left: 179
        top: 174
        right: 544
        bottom: 245
      }
      class_name: "android.view.View"
      text: "Prepare Details"
      depth: 20
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 283
        right: 105
        bottom: 233
      }
      class_name: "android.view.ViewGroup"
      depth: 20
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 369
        right: 105
        bottom: 432
      }
      class_name: "android.view.ViewGroup"
      depth: 20
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 588
        right: 105
        bottom: 651
      }
      class_name: "android.view.ViewGroup"
      depth: 20
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 807
        right: 105
        bottom: 870
      }
      class_name: "android.view.ViewGroup"
      depth: 20
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 1026
        right: 105
        bottom: 1089
      }
      class_name: "android.view.ViewGroup"
      depth: 20
    }
    nodes {
      bounds_in_screen {
        left: 37
        top: 178
        right: 100
        bottom: 241
      }
      class_name: "android.widget.ImageView"
      depth: 21
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 283
        right: 105
        bottom: 233
      }
      class_name: "android.widget.TextView"
      text: "󰄱"
      depth: 21
    }
    nodes {
      bounds_in_screen {
        left: 55
        top: 283
        right: 92
        bottom: 219
      }
      class_name: "android.view.ViewGroup"
      depth: 21
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 369
        right: 105
        bottom: 432
      }
      class_name: "android.widget.TextView"
      text: "󰄱"
      depth: 21
    }
    nodes {
      bounds_in_screen {
        left: 55
        top: 382
        right: 92
        bottom: 419
      }
      class_name: "android.view.ViewGroup"
      depth: 21
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 588
        right: 105
        bottom: 651
      }
      class_name: "android.widget.TextView"
      text: "󰄱"
      depth: 21
    }
    nodes {
      bounds_in_screen {
        left: 55
        top: 601
        right: 92
        bottom: 638
      }
      class_name: "android.view.ViewGroup"
      depth: 21
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 807
        right: 105
        bottom: 870
      }
      class_name: "android.widget.TextView"
      text: "󰄱"
      depth: 21
    }
    nodes {
      bounds_in_screen {
        left: 55
        top: 820
        right: 92
        bottom: 857
      }
      class_name: "android.view.ViewGroup"
      depth: 21
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 1026
        right: 105
        bottom: 1089
      }
      class_name: "android.widget.TextView"
      text: "󰄱"
      depth: 21
    }
    nodes {
      bounds_in_screen {
        left: 55
        top: 1039
        right: 92
        bottom: 1076
      }
      class_name: "android.view.ViewGroup"
      depth: 21
    }
  }
}

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