instruction
Go to the fitbit app and set a goal to gain weight
previous_actions
{"name": "open_app", "parameters": {"app_name": "Fitbit"}}
{"name": "click", "parameters": {"x": 582, "y": 1925}}
{"name": "click", "parameters": {"x": 399, "y": 1685}}
active_application
screen_description
windows {
  bounds_in_screen {
    right: 1080
    bottom: 118
  }
  id: 3547
  layer: 1
  window_type: TYPE_SYSTEM
  tree {
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        left: 47
        right: 1027
        bottom: 118
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 454
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 454
        top: 1
        right: 599
        bottom: 118
      }
      class_name: "android.view.View"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 599
        top: 1
        right: 1006
        bottom: 118
      }
      class_name: "android.widget.LinearLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 454
        bottom: 118
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 861
        top: 1
        right: 1006
        bottom: 118
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 133
        bottom: 118
      }
      class_name: "android.widget.TextView"
      content_description: "8:42 AM"
      text: "8:42"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 133
        top: 1
        right: 454
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 861
        top: 1
        right: 986
        bottom: 118
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 986
        top: 1
        right: 1006
        bottom: 118
      }
      class_name: "android.widget.LinearLayout"
      content_description: "Battery charging, 100 percent."
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 133
        top: 1
        right: 454
        bottom: 118
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 861
        top: 30
        right: 924
        bottom: 88
      }
      class_name: "android.widget.ImageView"
      content_description: "Location requests active"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 924
        top: 30
        right: 970
        bottom: 88
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Wifi three bars."
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 986
        top: 42
        right: 1006
        bottom: 76
      }
      class_name: "android.widget.ImageView"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 133
        top: 1
        right: 454
        bottom: 118
      }
      class_name: "android.widget.FrameLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 30
        right: 970
        bottom: 88
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 133
        top: 1
        right: 191
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "Bewakoof notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 191
        top: 1
        right: 249
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "Snapdeal notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 249
        top: 1
        right: 307
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "NykaaFashion notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 307
        top: 1
        right: 365
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "Pantaloons notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 365
        top: 1
        right: 423
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "KUKU FM notification: ⛈️+ 🥘 + 🎧📚"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 441
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "System update notification: Android 13"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 441
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "YouTube notification: How much money do you need to retire early?"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 441
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "Nykaa notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 441
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "Gmail notification: 7 new messages"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 441
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "Google notification: HindiPod101.com - Activate Your HindiPod101 Account and Get Your Free Bonus!"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 441
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "YouTube notification: Big Lion and Dog are Good Friends | Nouman Hassan |"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 441
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "Myntra notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 441
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "Meesho notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 441
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "Flipkart notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 441
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "Radio FM notification: Your all time favorite❤️ is on the list🥰"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 441
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "MANGO notification: Final Clearance: up to 70% off"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 441
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "Google notification: YouTube"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 441
        bottom: 118
      }
      class_name: "android.widget.ImageView"
      content_description: "Google notification: Expect rain around 10 AM"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 39
        right: 970
        bottom: 78
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 39
        right: 970
        bottom: 78
      }
      class_name: "android.widget.ImageView"
      depth: 10
    }
  }
}
windows {
  bounds_in_screen {
    right: 1080
    bottom: 2400
  }
  id: 3560
  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: 118
      }
      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: 118
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        top: 118
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        top: 118
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        top: 118
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 118
        right: 1080
        bottom: 265
      }
      class_name: "android.view.ViewGroup"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 265
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.RelativeLayout"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 118
        right: 147
        bottom: 265
      }
      class_name: "android.widget.ImageButton"
      content_description: "Navigate up"
      is_clickable: true
      is_focusable: true
      depth: 7
      tooltip_text: "Navigate up"
    }
    nodes {
      bounds_in_screen {
        left: 1080
        top: 118
        right: 1080
        bottom: 265
      }
      class_name: "android.support.v7.widget.LinearLayoutCompat"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 13
        top: 412
        right: 1067
        bottom: 490
      }
      class_name: "android.widget.TextView"
      text: "What is your weight goal?"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 574
        right: 1080
        bottom: 2053
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 79
        top: 2132
        right: 1001
        bottom: 2258
      }
      class_name: "android.widget.Button"
      text: "Next"
      is_clickable: true
      is_focusable: true
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 574
        right: 1080
        bottom: 2053
      }
      class_name: "android.widget.LinearLayout"
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 574
        right: 1080
        bottom: 1804
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 1804
        right: 1080
        bottom: 2053
      }
      class_name: "android.widget.RelativeLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 1101
        right: 1080
        bottom: 1276
      }
      class_name: "android.widget.RelativeLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 537
        top: 1804
        right: 542
        bottom: 1809
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1843
        right: 1080
        bottom: 2053
      }
      class_name: "android.support.v7.widget.RecyclerView"
      is_focusable: true
      is_scrollable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 504
        top: 1817
        right: 575
        bottom: 2053
      }
      class_name: "android.widget.ImageView"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 406
        top: 1101
        right: 550
        bottom: 1276
      }
      class_name: "android.widget.EditText"
      text: "65"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 576
        top: 1139
        right: 673
        bottom: 1266
      }
      class_name: "android.widget.TextView"
      text: "kg"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 1843
        right: 317
        bottom: 2053
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 317
        top: 1843
        right: 757
        bottom: 2053
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 757
        top: 1843
        right: 1080
        bottom: 2053
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 1843
        right: 317
        bottom: 2053
      }
      class_name: "android.widget.FrameLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 317
        top: 1843
        right: 757
        bottom: 2053
      }
      class_name: "android.widget.FrameLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 757
        top: 1843
        right: 1080
        bottom: 2053
      }
      class_name: "android.widget.FrameLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 1843
        right: 317
        bottom: 2053
      }
      class_name: "android.widget.LinearLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 123
        top: 1983
        right: 181
        bottom: 2053
      }
      class_name: "android.widget.TextView"
      text: "64"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 317
        top: 1843
        right: 757
        bottom: 2053
      }
      class_name: "android.widget.LinearLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 563
        top: 1983
        right: 621
        bottom: 2053
      }
      class_name: "android.widget.TextView"
      text: "65"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 757
        top: 1843
        right: 1080
        bottom: 2053
      }
      class_name: "android.widget.LinearLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 1003
        top: 1983
        right: 1061
        bottom: 2053
      }
      class_name: "android.widget.TextView"
      text: "66"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 1843
        right: -118
        bottom: 1921
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        top: 1843
        right: -74
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        top: 1843
        right: -30
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 9
        top: 1843
        right: 14
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 53
        top: 1843
        right: 58
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 97
        top: 1843
        right: 102
        bottom: 2053
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 141
        top: 1843
        right: 146
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 185
        top: 1843
        right: 190
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 229
        top: 1843
        right: 234
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 273
        top: 1843
        right: 278
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 317
        top: 1843
        right: 322
        bottom: 1921
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 361
        top: 1843
        right: 366
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 405
        top: 1843
        right: 410
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 449
        top: 1843
        right: 454
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 493
        top: 1843
        right: 498
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 537
        top: 1843
        right: 542
        bottom: 2053
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 581
        top: 1843
        right: 586
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 625
        top: 1843
        right: 630
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 669
        top: 1843
        right: 674
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 713
        top: 1843
        right: 718
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 757
        top: 1843
        right: 762
        bottom: 1921
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 801
        top: 1843
        right: 806
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 845
        top: 1843
        right: 850
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 889
        top: 1843
        right: 894
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 933
        top: 1843
        right: 938
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 977
        top: 1843
        right: 982
        bottom: 2053
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 1021
        top: 1843
        right: 1026
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 1065
        top: 1843
        right: 1070
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 1109
        top: 1843
        right: 1080
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 1153
        top: 1843
        right: 1080
        bottom: 1895
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
  }
}

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