instruction
I have to buy a gift for my friend Thomas, but I forgot the date. Search for the Thomas birthday event in the Calendar app. 
previous_actions
active_application
screen_description
windows {
  bounds_in_screen {
    right: 1440
    bottom: 145
  }
  id: 6
  layer: 1
  window_type: TYPE_SYSTEM
  tree {
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 145
      }
      class_name: "android.widget.FrameLayout"
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 145
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 145
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 145
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 145
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        left: 50
        right: 1370
        bottom: 145
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1
        right: 645
        bottom: 145
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 645
        top: 1
        right: 775
        bottom: 145
      }
      class_name: "android.view.View"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 775
        top: 1
        right: 1342
        bottom: 145
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1
        right: 575
        bottom: 145
      }
      class_name: "android.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 1232
        top: 1
        right: 1342
        bottom: 145
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1
        right: 575
        bottom: 145
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 1232
        top: 1
        right: 1342
        bottom: 145
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1
        right: 190
        bottom: 145
      }
      class_name: "android.widget.TextView"
      content_description: "8:40 PM"
      text: "8:40"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 190
        top: 1
        right: 575
        bottom: 145
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 1232
        top: 1
        right: 1315
        bottom: 145
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 1315
        top: 1
        right: 1342
        bottom: 145
      }
      class_name: "android.widget.LinearLayout"
      content_description: "Battery charging, 100 percent."
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 190
        top: 1
        right: 575
        bottom: 145
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 1232
        top: 34
        right: 1294
        bottom: 111
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Wifi signal full."
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 1315
        top: 50
        right: 1342
        bottom: 96
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 190
        top: 1
        right: 267
        bottom: 145
      }
      class_name: "android.widget.ImageView"
      content_description: "Tata CLiQ Luxury notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 267
        top: 1
        right: 344
        bottom: 145
      }
      class_name: "android.widget.ImageView"
      content_description: "Reddit notification: PhotoshopRequest:"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 344
        top: 1
        right: 421
        bottom: 145
      }
      class_name: "android.widget.ImageView"
      content_description: "Shopsy notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 421
        top: 1
        right: 498
        bottom: 145
      }
      class_name: "android.widget.ImageView"
      content_description: "Urbanic notification: Knit Hits ❤️‍🔥"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 498
        top: 1
        right: 575
        bottom: 145
      }
      class_name: "android.widget.ImageView"
      content_description: "CNN notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 523
        top: 1
        right: 575
        bottom: 145
      }
      class_name: "android.widget.ImageView"
      content_description: "CNN notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 523
        top: 1
        right: 575
        bottom: 145
      }
      class_name: "android.widget.ImageView"
      content_description: "Google Play services notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 523
        top: 1
        right: 575
        bottom: 145
      }
      class_name: "android.widget.ImageView"
      content_description: "Android System notification: Hotspot turned off"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 523
        top: 1
        right: 575
        bottom: 145
      }
      class_name: "android.widget.ImageView"
      content_description: "M&S India notification: Wardrobe Refresh!"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 523
        top: 1
        right: 575
        bottom: 145
      }
      class_name: "android.widget.ImageView"
      content_description: "CNN notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 523
        top: 1
        right: 575
        bottom: 145
      }
      class_name: "android.widget.ImageView"
      content_description: "Ubuy notification: Best Massage Gaming Chairs 🎮"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 523
        top: 1
        right: 575
        bottom: 145
      }
      class_name: "android.widget.ImageView"
      content_description: "Washington Post notification: Editors\' Picks"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 1241
        top: 34
        right: 1294
        bottom: 111
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 1241
        top: 46
        right: 1294
        bottom: 99
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 1241
        top: 46
        right: 1294
        bottom: 99
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
  }
}
windows {
  bounds_in_screen {
    right: 1440
    bottom: 3120
  }
  id: 62
  window_type: TYPE_APPLICATION
  is_active: true
  is_focused: true
  tree {
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 3120
      }
      class_name: "android.widget.FrameLayout"
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 3120
      }
      class_name: "android.widget.LinearLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 3120
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 3120
      }
      class_name: "android.widget.FrameLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 3120
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 3120
      }
      class_name: "android.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 3120
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 3120
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 720
        top: 812
        right: 720
        bottom: 812
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 3036
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 341
      }
      class_name: "android.widget.FrameLayout"
      is_clickable: true
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 341
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 334
        right: 1440
        bottom: 3029
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 341
      }
      class_name: "android.widget.ImageView"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 341
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 341
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 334
        right: 1440
        bottom: 3029
      }
      class_name: "android.widget.ScrollView"
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 341
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 14
        top: 145
        right: 210
        bottom: 341
      }
      class_name: "android.widget.Button"
      content_description: "Close"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 1058
        top: 145
        right: 1419
        bottom: 341
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 341
        right: 1440
        bottom: 1430
      }
      class_name: "android.widget.LinearLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 341
      }
      class_name: "android.widget.FrameLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 70
        top: 201
        right: 154
        bottom: 285
      }
      class_name: "android.widget.ImageView"
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 1058
        top: 145
        right: 1254
        bottom: 341
      }
      class_name: "android.widget.LinearLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 1205
        top: 145
        right: 1401
        bottom: 341
      }
      class_name: "android.view.ViewGroup"
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 341
        right: 1440
        bottom: 740
      }
      class_name: "android.widget.FrameLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 740
        right: 1440
        bottom: 987
      }
      class_name: "android.widget.LinearLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 987
        right: 1440
        bottom: 1155
      }
      class_name: "android.view.ViewGroup"
      content_description: "Calendar Notifications\n10 minutes before"
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 1155
        right: 1440
        bottom: 1402
      }
      class_name: "android.view.ViewGroup"
      content_description: "Calendar Name\nEvents\nquentinclark421@gmail.com"
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        right: 1440
        bottom: 341
      }
      class_name: "android.view.View"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        right: 1440
      }
      class_name: "android.view.View"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 1058
        top: 145
        right: 1254
        bottom: 341
      }
      class_name: "android.widget.Button"
      content_description: "Edit"
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 1261
        top: 145
        right: 1401
        bottom: 341
      }
      class_name: "android.support.v7.widget.LinearLayoutCompat"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 341
        right: 1440
        bottom: 740
      }
      class_name: "android.widget.FrameLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 740
        right: 1440
        bottom: 987
      }
      class_name: "android.widget.Button"
      is_clickable: true
      is_focusable: true
      is_long_clickable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 987
        right: 1440
        bottom: 1155
      }
      class_name: "android.widget.LinearLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 70
        top: 1029
        right: 154
        bottom: 1113
      }
      class_name: "android.widget.ImageView"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 1155
        right: 1440
        bottom: 1402
      }
      class_name: "android.widget.LinearLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 70
        top: 1232
        right: 154
        bottom: 1316
      }
      class_name: "android.widget.ImageView"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 1114
        top: 201
        right: 1198
        bottom: 285
      }
      class_name: "android.widget.ImageView"
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 1261
        top: 159
        right: 1401
        bottom: 327
      }
      class_name: "android.widget.ImageView"
      content_description: "More options"
      is_clickable: true
      is_focusable: true
      is_long_clickable: true
      depth: 14
      tooltip_text: "More options"
    }
    nodes {
      bounds_in_screen {
        top: 341
        right: 1440
        bottom: 740
      }
      class_name: "android.widget.LinearLayout"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 84
        top: 373
        right: 140
        bottom: 429
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        top: 740
        right: 1440
        bottom: 987
      }
      class_name: "android.widget.LinearLayout"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 70
        top: 817
        right: 154
        bottom: 901
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 224
        top: 1036
        right: 1384
        bottom: 1106
      }
      class_name: "android.widget.TextView"
      text: "10 minutes before"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 224
        top: 1204
        right: 1384
        bottom: 1274
      }
      class_name: "android.widget.TextView"
      text: "Events"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 224
        top: 1292
        right: 1384
        bottom: 1353
      }
      class_name: "android.widget.TextView"
      text: "quentinclark421@gmail.com"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 224
        top: 348
        right: 1356
        bottom: 565
      }
      class_name: "android.widget.TextView"
      text: "Southampton Design Festival Event"
      is_focusable: true
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 224
        top: 586
        right: 1356
        bottom: 656
      }
      class_name: "android.widget.TextView"
      content_description: "Tuesday, September 26, 8:30 PM – 9:30 PM"
      text: "Tuesday, Sep 26  •  8:30 – 9:30 PM"
      is_focusable: true
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 224
        top: 789
        right: 1384
        bottom: 859
      }
      class_name: "android.widget.TextView"
      text: "Video call"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 224
        top: 877
        right: 1384
        bottom: 938
      }
      class_name: "android.widget.TextView"
      text: "Will be added"
      depth: 15
    }
  }
}

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"]}}}]