instruction
Open the MyFitnessPal app, go to the workout section, select Build Routine, and add Exercise for 1 Minute Push Ups.
previous_actions
{"name": "open_app", "parameters": {"app_name": "MyFitnessPal"}}
{"name": "wait", "parameters": {}}
{"name": "scroll", "parameters": {"direction": "down"}}
{"name": "click", "parameters": {"x": 540, "y": 1163}}
active_application
MyFitnessPal
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: 47
        right: 1027
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 454
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 454
        top: 1
        right: 599
        bottom: 136
      }
      class_name: "android.view.View"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 599
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 365
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 867
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 365
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 867
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 133
        bottom: 136
      }
      class_name: "android.widget.TextView"
      content_description: "4:35 PM"
      text: "4:35"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 133
        top: 1
        right: 365
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 867
        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: 133
        top: 1
        right: 365
        bottom: 136
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 867
        top: 39
        right: 924
        bottom: 97
      }
      class_name: "android.widget.ImageView"
      content_description: "Do Not Disturb"
      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: 133
        top: 1
        right: 191
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Moon Phase Calendar notification: 82%"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 191
        top: 1
        right: 249
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Gmail notification: MyFitnessPal"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 249
        top: 1
        right: 307
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Gmail notification: 6 new messages"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 307
        top: 1
        right: 365
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Lunarsync notification: See the overview for today 🙏"
      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: 372
  title: "MyFitnessPal"
  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.FrameLayout"
      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.FrameLayout"
      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.view.ViewGroup"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 283
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 283
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 2148
        right: 1038
        bottom: 2295
      }
      class_name: "android.widget.Button"
      text: "Add Exercise"
      is_clickable: true
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 283
      }
      class_name: "android.widget.FrameLayout"
      content_description: "MyFitnessPal"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 283
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.RelativeLayout"
      is_focusable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 283
      }
      class_name: "android.view.ViewGroup"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 283
        right: 1080
        bottom: 2337
      }
      class_name: "androidx.recyclerview.widget.RecyclerView"
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 147
        bottom: 283
      }
      class_name: "android.widget.ImageButton"
      content_description: "Navigate up"
      is_clickable: true
      is_focusable: true
      depth: 11
      tooltip_text: "Navigate up"
    }
    nodes {
      bounds_in_screen {
        left: 189
        top: 172
        right: 189
        bottom: 247
      }
      class_name: "android.widget.TextView"
      text: "MyFitnessPal"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 189
        top: 172
        right: 849
        bottom: 246
      }
      class_name: "android.widget.TextView"
      text: "Build Routine"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 933
        top: 136
        right: 1059
        bottom: 283
      }
      class_name: "androidx.appcompat.widget.LinearLayoutCompat"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 933
        top: 136
        right: 933
        bottom: 283
      }
      class_name: "android.view.View"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 283
        right: 1080
        bottom: 517
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 517
        right: 1080
        bottom: 706
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 864
        right: 1080
        bottom: 997
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 997
        right: 1080
        bottom: 1128
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 933
        top: 146
        right: 1059
        bottom: 272
      }
      class_name: "android.widget.Button"
      content_description: "Done"
      is_clickable: true
      is_focusable: true
      depth: 12
      tooltip_text: "Done"
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 325
        right: 922
        bottom: 399
      }
      class_name: "android.widget.TextView"
      hint_text: "Routine Name"
      text: "Routine Name"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 943
        top: 315
        right: 1038
        bottom: 410
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 420
        right: 1059
        bottom: 472
      }
      class_name: "android.widget.TextView"
      hint_text: "Add description or notes…"
      text: "Add description or notes…"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 514
        right: 1080
        bottom: 517
      }
      class_name: "android.view.View"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 168
        top: 558
        right: 188
        bottom: 621
      }
      class_name: "android.widget.TextView"
      text: "-"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 61
        top: 621
        right: 296
        bottom: 665
      }
      class_name: "android.widget.TextView"
      text: "Planned Volume"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 356
        top: 517
        right: 713
        bottom: 706
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 886
        top: 558
        right: 906
        bottom: 621
      }
      class_name: "android.widget.TextView"
      text: "-"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 805
        top: 621
        right: 988
        bottom: 665
      }
      class_name: "android.widget.TextView"
      text: "Est. Calories"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 370
        top: 864
        right: 710
        bottom: 924
      }
      class_name: "android.widget.TextView"
      text: "No Exercises Yet"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 140
        top: 945
        right: 939
        bottom: 997
      }
      class_name: "android.widget.TextView"
      text: "Start building your routine by adding exercises."
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 997
        right: 1080
        bottom: 1128
      }
      class_name: "android.view.View"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 943
        top: 331
        right: 1004
        bottom: 394
      }
      class_name: "android.widget.ImageView"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 993
        top: 339
        right: 1038
        bottom: 386
      }
      class_name: "android.widget.ImageView"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 525
        top: 558
        right: 545
        bottom: 621
      }
      class_name: "android.widget.TextView"
      text: "-"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 441
        top: 621
        right: 629
        bottom: 665
      }
      class_name: "android.widget.TextView"
      text: "Est. Duration"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 629
        top: 622
        right: 671
        bottom: 664
      }
      class_name: "android.widget.ImageView"
      depth: 13
    }
  }
}

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