instruction
GO to the Emergency Option and send a Distress Signal.
previous_actions
active_application
ICE - Medical Reports
screen_description
windows {
  bounds_in_screen {
    top: 136
    right: 1080
    bottom: 2400
  }
  id: 266
  title: "ICE - Medical Reports"
  window_type: TYPE_APPLICATION
  is_active: true
  is_focused: true
  tree {
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2400
      }
      class_name: "android.widget.FrameLayout"
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      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.view.ViewGroup"
      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: "android.view.ViewGroup"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 283
      }
      class_name: "android.view.ViewGroup"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 283
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 283
      }
      class_name: "android.view.ViewGroup"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 283
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 147
        bottom: 283
      }
      class_name: "android.widget.ImageButton"
      is_clickable: true
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 189
        top: 178
        right: 1080
        bottom: 241
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 283
        right: 1080
        bottom: 1002
      }
      class_name: "android.widget.FrameLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 1002
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 858
        top: 917
        right: 1029
        bottom: 1088
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 189
        top: 178
        right: 430
        bottom: 241
      }
      class_name: "android.widget.TextView"
      text: "Emergency"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 283
        right: 1080
        bottom: 1002
      }
      class_name: "android.view.ViewGroup"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 1002
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 893
        top: 952
        right: 995
        bottom: 1054
      }
      class_name: "android.widget.ImageView"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 283
        right: 1080
        bottom: 1002
      }
      class_name: "android.view.ViewGroup"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1002
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 404
        top: 506
        right: 677
        bottom: 779
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 351
        top: 806
        right: 729
        bottom: 864
      }
      class_name: "android.widget.TextView"
      text: "Send SOS Message"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 1002
        right: 1080
        bottom: 2337
      }
      class_name: "androidx.recyclerview.widget.RecyclerView"
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 1002
        right: 1080
        bottom: 1324
      }
      class_name: "android.view.ViewGroup"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 1324
        right: 1080
        bottom: 1494
      }
      class_name: "android.view.ViewGroup"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 1494
        right: 1080
        bottom: 1714
      }
      class_name: "android.view.ViewGroup"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 1714
        right: 1080
        bottom: 2036
      }
      class_name: "android.view.ViewGroup"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 2036
        right: 1080
        bottom: 2308
      }
      class_name: "android.view.ViewGroup"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 1002
        right: 1080
        bottom: 1019
      }
      class_name: "android.view.View"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 1019
        right: 1080
        bottom: 1104
      }
      class_name: "android.widget.TextView"
      text: "SOS"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 1104
        right: 1080
        bottom: 1324
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 1324
        right: 1080
        bottom: 1494
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 1494
        right: 1080
        bottom: 1714
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 1714
        right: 1080
        bottom: 1731
      }
      class_name: "android.view.View"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 1731
        right: 1080
        bottom: 1816
      }
      class_name: "android.widget.TextView"
      text: "Lock Screen"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 1816
        right: 1080
        bottom: 2036
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 2036
        right: 1080
        bottom: 2053
      }
      class_name: "android.view.View"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 2053
        right: 1080
        bottom: 2138
      }
      class_name: "android.widget.TextView"
      text: "Config QR"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 2138
        right: 1080
        bottom: 2308
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 41
        top: 1177
        right: 116
        bottom: 1252
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 171
        top: 1135
        right: 459
        bottom: 1193
      }
      class_name: "android.widget.TextView"
      text: "Configure SOS"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 171
        top: 1193
        right: 1039
        bottom: 1293
      }
      class_name: "android.widget.TextView"
      text: "Add customize message and SOS safety contact circle"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 41
        top: 1372
        right: 116
        bottom: 1447
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 171
        top: 1355
        right: 423
        bottom: 1413
      }
      class_name: "android.widget.TextView"
      text: "SMS Feature"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 171
        top: 1413
        right: 1039
        bottom: 1463
      }
      class_name: "android.widget.TextView"
      text: "Enable or Disable mobile SMS feature"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 41
        top: 1567
        right: 116
        bottom: 1642
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 171
        top: 1525
        right: 490
        bottom: 1583
      }
      class_name: "android.widget.TextView"
      text: "Enable Location"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 171
        top: 1583
        right: 1039
        bottom: 1683
      }
      class_name: "android.widget.TextView"
      text: "Enable location to share your location on alert message"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 41
        top: 1889
        right: 116
        bottom: 1964
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 171
        top: 1847
        right: 537
        bottom: 1905
      }
      class_name: "android.widget.TextView"
      text: "Lock Screen Mode"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 171
        top: 1905
        right: 1039
        bottom: 2005
      }
      class_name: "android.widget.TextView"
      text: "Enable or Disable the lock screen widget that appears on the lock screen"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 41
        top: 2186
        right: 116
        bottom: 2261
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 171
        top: 2169
        right: 662
        bottom: 2227
      }
      class_name: "android.widget.TextView"
      text: "Configure QR Scan Code"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 171
        top: 2227
        right: 1039
        bottom: 2277
      }
      class_name: "android.widget.TextView"
      text: "Activate a QR code and scan it from any device"
      depth: 14
    }
  }
}

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