instruction
Open the Simple Calculator app and add two numbers 8 and 9 
previous_actions
active_application
Calculator
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: 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: 537
        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: 537
        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: 247
        bottom: 136
      }
      class_name: "android.widget.TextView"
      content_description: "12:17 PM"
      text: "12:17"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 247
        top: 1
        right: 537
        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: 247
        top: 1
        right: 537
        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: 247
        top: 1
        right: 305
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Weather notification: 34°"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 305
        top: 1
        right: 363
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Weather&Radar notification: Activate Weather Alerts!"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 363
        top: 1
        right: 421
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Mondly Languages notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 421
        top: 1
        right: 479
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "MakeMyTrip notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 479
        top: 1
        right: 537
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "ixigo trains notification: It’s the ‘Monsoon Airline Sale’ time 🌧️"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 497
        top: 1
        right: 537
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Artsy notification: See new works by artists you follow"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 497
        top: 1
        right: 537
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Confirmtkt notification: Crazy Discounts on Flights ✈️"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 497
        top: 1
        right: 537
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "PlantApp notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 497
        top: 1
        right: 537
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Plant Lens 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: 155
  title: "Calculator"
  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.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.view.View"
      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.LinearLayout"
      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: "android.view.ViewGroup"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 815
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 43
        top: 860
        right: 248
        bottom: 996
      }
      class_name: "android.widget.ImageButton"
      content_description: "square root"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 270
        top: 860
        right: 475
        bottom: 996
      }
      class_name: "android.widget.ImageButton"
      content_description: "pi"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 497
        top: 860
        right: 702
        bottom: 996
      }
      class_name: "android.widget.ImageButton"
      content_description: "power"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 724
        top: 860
        right: 929
        bottom: 996
      }
      class_name: "android.widget.ImageButton"
      content_description: "factorial"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 950
        top: 885
        right: 1037
        bottom: 972
      }
      class_name: "android.widget.ImageButton"
      content_description: "Expand"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 43
        top: 1042
        right: 275
        bottom: 1277
      }
      class_name: "android.widget.ImageButton"
      content_description: "clear"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 297
        top: 1042
        right: 529
        bottom: 1277
      }
      class_name: "android.widget.ImageButton"
      content_description: "left or right parenthesis"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 551
        top: 1042
        right: 783
        bottom: 1277
      }
      class_name: "android.widget.ImageButton"
      content_description: "percent"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 805
        top: 1042
        right: 1037
        bottom: 1277
      }
      class_name: "android.widget.ImageButton"
      content_description: "divide"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 43
        top: 1311
        right: 275
        bottom: 1546
      }
      class_name: "android.widget.ImageButton"
      content_description: "7"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 297
        top: 1311
        right: 529
        bottom: 1546
      }
      class_name: "android.widget.ImageButton"
      content_description: "8"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 551
        top: 1311
        right: 783
        bottom: 1546
      }
      class_name: "android.widget.ImageButton"
      content_description: "9"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 805
        top: 1311
        right: 1037
        bottom: 1546
      }
      class_name: "android.widget.ImageButton"
      content_description: "multiply"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 43
        top: 1580
        right: 275
        bottom: 1816
      }
      class_name: "android.widget.ImageButton"
      content_description: "4"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 297
        top: 1580
        right: 529
        bottom: 1816
      }
      class_name: "android.widget.ImageButton"
      content_description: "5"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 551
        top: 1580
        right: 783
        bottom: 1816
      }
      class_name: "android.widget.ImageButton"
      content_description: "6"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 805
        top: 1580
        right: 1037
        bottom: 1816
      }
      class_name: "android.widget.ImageButton"
      content_description: "minus"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 43
        top: 1850
        right: 275
        bottom: 2085
      }
      class_name: "android.widget.ImageButton"
      content_description: "1"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 297
        top: 1850
        right: 529
        bottom: 2085
      }
      class_name: "android.widget.ImageButton"
      content_description: "2"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 551
        top: 1850
        right: 783
        bottom: 2085
      }
      class_name: "android.widget.ImageButton"
      content_description: "3"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 805
        top: 1850
        right: 1037
        bottom: 2085
      }
      class_name: "android.widget.ImageButton"
      content_description: "plus"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 43
        top: 2119
        right: 275
        bottom: 2355
      }
      class_name: "android.widget.ImageButton"
      content_description: "0"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 297
        top: 2119
        right: 529
        bottom: 2355
      }
      class_name: "android.widget.ImageButton"
      content_description: "point"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 551
        top: 2119
        right: 783
        bottom: 2355
      }
      class_name: "android.widget.ImageButton"
      content_description: "delete"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 805
        top: 2119
        right: 1037
        bottom: 2355
      }
      class_name: "android.widget.ImageButton"
      content_description: "equals"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: -1186
      }
      class_name: "android.view.ViewGroup"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.support.v7.widget.RecyclerView"
      is_focusable: true
      is_scrollable: true
      depth: 7
    }
    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: 576
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 576
        right: 1080
        bottom: 772
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 508
        top: 783
        right: 571
        bottom: 794
      }
      class_name: "android.widget.ImageView"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        right: 147
        bottom: -1186
      }
      class_name: "android.widget.ImageButton"
      content_description: "Navigate up"
      is_clickable: true
      is_focusable: true
      depth: 8
      tooltip_text: "Navigate up"
    }
    nodes {
      bounds_in_screen {
        left: 157
        right: 345
        bottom: -1217
      }
      class_name: "android.widget.TextView"
      text: "History"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 975
        right: 1080
        bottom: -1186
      }
      class_name: "android.support.v7.widget.LinearLayoutCompat"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: -877
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: -497
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 52
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 167
        right: 609
        bottom: 252
      }
      class_name: "android.widget.FrameLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 975
        top: 136
        right: 1080
        bottom: 283
      }
      class_name: "android.support.v7.widget.LinearLayoutCompat"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 283
        right: 1080
        bottom: 576
      }
      class_name: "android.widget.TextView"
      text: "123"
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 975
        right: 1080
        bottom: -1197
      }
      class_name: "android.widget.ImageView"
      content_description: "More options"
      is_clickable: true
      is_focusable: true
      is_long_clickable: true
      depth: 9
      tooltip_text: "More options"
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: -1010
      }
      class_name: "android.widget.HorizontalScrollView"
      is_focusable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: -877
      }
      class_name: "android.widget.TextView"
      text: "325"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: -630
      }
      class_name: "android.widget.HorizontalScrollView"
      is_focusable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: -497
      }
      class_name: "android.widget.TextView"
      text: "40.625"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: -420
      }
      class_name: "android.view.View"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: -214
      }
      class_name: "android.widget.TextView"
      text: "Today"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: -81
      }
      class_name: "android.widget.HorizontalScrollView"
      is_focusable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 52
      }
      class_name: "android.widget.TextView"
      text: "123"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 167
        right: 609
        bottom: 252
      }
      class_name: "android.widget.TextView"
      text: "Current expression"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 167
        right: 194
        bottom: 244
      }
      class_name: "android.widget.Button"
      content_description: "degree mode"
      text: "DEG"
      is_clickable: true
      is_focusable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 975
        top: 146
        right: 1080
        bottom: 272
      }
      class_name: "android.widget.ImageView"
      content_description: "More options"
      is_clickable: true
      is_focusable: true
      is_long_clickable: true
      depth: 9
      tooltip_text: "More options"
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: -1010
      }
      class_name: "android.widget.TextView"
      text: "280+45"
      is_clickable: true
      is_editable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: -630
      }
      class_name: "android.widget.TextView"
      text: "325÷8"
      is_clickable: true
      is_editable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: -81
      }
      class_name: "android.widget.TextView"
      text: "45+78"
      is_clickable: true
      is_editable: true
      is_focusable: true
      depth: 10
    }
  }
}

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