instruction
Open the Pizza Max app and add a 10 inch medium pizza to your cart with a thin and crispy crust.
previous_actions
{"name": "open_app", "parameters": {"app_name": "Pizza Max"}}
{"name": "open_app", "parameters": {"app_name": "Pizza Max"}}
{"name": "scroll", "parameters": {"direction": "right"}}
{"name": "scroll", "parameters": {"direction": "right"}}
{"name": "click", "parameters": {"x": 562, "y": 783}}
{"name": "click", "parameters": {"x": 481, "y": 1284}}
{"name": "click", "parameters": {"x": 908, "y": 1236}}
{"name": "click", "parameters": {"x": 396, "y": 1190}}
{"name": "click", "parameters": {"x": 728, "y": 1528}}
active_application
screen_description
windows {
  bounds_in_screen {
    right: 1080
    bottom: 128
  }
  id: 8
  layer: 1
  window_type: TYPE_SYSTEM
  tree {
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        left: 50
        right: 1027
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        left: 50
        top: 1
        right: 469
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 469
        top: 1
        right: 587
        bottom: 128
      }
      class_name: "android.view.View"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 587
        top: 1
        right: 1006
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 50
        top: 1
        right: 368
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 924
        top: 1
        right: 1006
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 50
        top: 1
        right: 368
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 924
        top: 1
        right: 1006
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 50
        top: 1
        right: 136
        bottom: 128
      }
      class_name: "android.widget.TextView"
      content_description: "4:13 pm"
      text: "4:13"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 136
        top: 1
        right: 368
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 924
        top: 1
        right: 986
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 986
        top: 1
        right: 1006
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      content_description: "Battery charging, 100 percent."
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 136
        top: 1
        right: 368
        bottom: 128
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 924
        top: 35
        right: 970
        bottom: 93
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Wi-Fi three bars."
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 986
        top: 47
        right: 1006
        bottom: 81
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 136
        top: 1
        right: 194
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "AJIO notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 194
        top: 1
        right: 252
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "Moon Phase Calendar notification: 12%"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 252
        top: 1
        right: 310
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "System update notification: Couldn\'t install system update"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 310
        top: 1
        right: 368
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "Google notification: 35° in Bandhwari"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 35
        right: 970
        bottom: 93
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 44
        right: 970
        bottom: 83
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 44
        right: 970
        bottom: 83
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
  }
}
windows {
  bounds_in_screen {
    left: 28
    top: 847
    right: 1052
    bottom: 1617
  }
  id: 286
  window_type: TYPE_APPLICATION
  is_active: true
  is_focused: true
  tree {
    nodes {
      bounds_in_screen {
        left: 28
        top: 847
        right: 1052
        bottom: 1617
      }
      class_name: "android.widget.FrameLayout"
    }
    nodes {
      bounds_in_screen {
        left: 70
        top: 889
        right: 1010
        bottom: 1575
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        left: 70
        top: 889
        right: 1010
        bottom: 1575
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        left: 70
        top: 889
        right: 1010
        bottom: 1575
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        left: 70
        top: 889
        right: 1010
        bottom: 1575
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 70
        top: 889
        right: 1010
        bottom: 1575
      }
      class_name: "android.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 70
        top: 889
        right: 1010
        bottom: 1575
      }
      class_name: "android.widget.FrameLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 70
        top: 889
        right: 1010
        bottom: 1575
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 70
        top: 1483
        right: 1010
        bottom: 1575
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 96
        top: 902
        right: 419
        bottom: 955
      }
      class_name: "android.widget.TextView"
      text: "Choose Your Crust"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 96
        top: 968
        right: 526
        bottom: 1014
      }
      class_name: "android.widget.TextView"
      text: "Please select any one option"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 70
        top: 1027
        right: 1010
        bottom: 1575
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 70
        top: 1483
        right: 446
        bottom: 1575
      }
      class_name: "android.widget.Button"
      text: "Cancel"
      is_clickable: true
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 446
        top: 1483
        right: 1010
        bottom: 1575
      }
      class_name: "android.widget.Button"
      text: "Confirm"
      is_clickable: true
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 109
        top: 1053
        right: 984
        bottom: 1457
      }
      class_name: "androidx.recyclerview.widget.RecyclerView"
      is_focusable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 109
        top: 1053
        right: 984
        bottom: 1154
      }
      class_name: "android.widget.RelativeLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 109
        top: 1154
        right: 984
        bottom: 1255
      }
      class_name: "android.widget.RelativeLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 109
        top: 1255
        right: 984
        bottom: 1356
      }
      class_name: "android.widget.RelativeLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 109
        top: 1356
        right: 984
        bottom: 1457
      }
      class_name: "android.widget.RelativeLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 109
        top: 1066
        right: 984
        bottom: 1112
      }
      class_name: "android.widget.RelativeLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 109
        top: 1138
        right: 984
        bottom: 1141
      }
      class_name: "android.view.View"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 109
        top: 1167
        right: 984
        bottom: 1213
      }
      class_name: "android.widget.RelativeLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 109
        top: 1239
        right: 984
        bottom: 1242
      }
      class_name: "android.view.View"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 109
        top: 1268
        right: 984
        bottom: 1314
      }
      class_name: "android.widget.RelativeLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 109
        top: 1340
        right: 984
        bottom: 1343
      }
      class_name: "android.view.View"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 109
        top: 1369
        right: 984
        bottom: 1415
      }
      class_name: "android.widget.RelativeLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 109
        top: 1441
        right: 984
        bottom: 1444
      }
      class_name: "android.view.View"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 135
        top: 1066
        right: 893
        bottom: 1112
      }
      class_name: "android.widget.TextView"
      text: "Deep Pan (Signature)"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 919
        top: 1066
        right: 958
        bottom: 1105
      }
      class_name: "android.widget.LinearLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 135
        top: 1167
        right: 893
        bottom: 1213
      }
      class_name: "android.widget.TextView"
      text: "Kebab Stuffed"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 919
        top: 1167
        right: 958
        bottom: 1206
      }
      class_name: "android.widget.LinearLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 135
        top: 1268
        right: 893
        bottom: 1314
      }
      class_name: "android.widget.TextView"
      text: "NEW YORK - STYLE"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 919
        top: 1268
        right: 958
        bottom: 1307
      }
      class_name: "android.widget.LinearLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 135
        top: 1369
        right: 893
        bottom: 1415
      }
      class_name: "android.widget.TextView"
      text: "THIN & CRISPY"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 919
        top: 1369
        right: 958
        bottom: 1408
      }
      class_name: "android.widget.LinearLayout"
      depth: 12
    }
  }
}

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