instruction
Open the Martinoz Pizza app and apply a coupon code of MARTINOZ100.
previous_actions
active_application
Pizza Hut
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: 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: 267
        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: 267
        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: 151
        bottom: 128
      }
      class_name: "android.widget.TextView"
      content_description: "11:13 AM"
      text: "11:13"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 151
        top: 1
        right: 267
        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: 151
        top: 1
        right: 267
        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: "Wifi 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: 151
        top: 1
        right: 209
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "Snapchat notification: 🅐🅛🅘🅒🅘🅐: 🅐🅛🅘🅒🅘🅐"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 209
        top: 1
        right: 267
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "Weather notification: 31°"
      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 {
    right: 1080
    bottom: 2400
  }
  id: 566
  title: "Pizza Hut"
  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 {
        top: 2337
        right: 1080
        bottom: 2400
      }
      class_name: "android.view.View"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 275
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 275
        right: 1080
        bottom: 2057
      }
      class_name: "androidx.recyclerview.widget.RecyclerView"
      is_focusable: true
      is_scrollable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 2057
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 275
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 275
        right: 1080
        bottom: 296
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 296
        right: 1080
        bottom: 410
      }
      class_name: "android.view.ViewGroup"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 410
        right: 1080
        bottom: 431
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 431
        right: 1080
        bottom: 565
      }
      class_name: "android.view.ViewGroup"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 565
        right: 1080
        bottom: 567
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 567
        right: 1080
        bottom: 569
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 569
        right: 1080
        bottom: 901
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 901
        right: 1080
        bottom: 903
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 903
        right: 1080
        bottom: 1235
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1235
        right: 1080
        bottom: 1237
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 1269
        right: 1048
        bottom: 1415
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1447
        right: 1080
        bottom: 1468
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1468
        right: 1080
        bottom: 1606
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1606
        right: 1080
        bottom: 1627
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1627
        right: 1080
        bottom: 2003
      }
      class_name: "android.widget.LinearLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 2003
        right: 1080
        bottom: 2024
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 2024
        right: 1080
        bottom: 2045
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 2045
        right: 1080
        bottom: 2057
      }
      class_name: "android.view.ViewGroup"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 2110
        right: 391
        bottom: 2153
      }
      class_name: "android.widget.TextView"
      text: "Prices are GST-inclusive"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 803
        top: 2099
        right: 1038
        bottom: 2153
      }
      class_name: "android.widget.TextView"
      text: "Total: ₹711.90"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 2174
        right: 1038
        bottom: 2295
      }
      class_name: "android.widget.TextView"
      text: "Proceed to Checkout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 147
        bottom: 275
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 440
        top: 128
        right: 640
        bottom: 275
      }
      class_name: "android.widget.TextView"
      text: "Your Cart"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 314
        right: 111
        bottom: 393
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 111
        top: 296
        right: 885
        bottom: 410
      }
      class_name: "android.widget.TextView"
      text: "Ordering for: ASAP"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 885
        top: 296
        right: 1080
        bottom: 410
      }
      class_name: "android.widget.TextView"
      text: "Change"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 431
        right: 270
        bottom: 565
      }
      class_name: "android.widget.TextView"
      text: "Order List"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 814
        top: 431
        right: 1080
        bottom: 565
      }
      class_name: "android.widget.TextView"
      text: "+ Add more"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 601
        right: 934
        bottom: 651
      }
      class_name: "android.widget.TextView"
      text: "Medium Mexican Fiesta"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 966
        top: 601
        right: 1048
        bottom: 651
      }
      class_name: "android.widget.TextView"
      text: "₹678"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 64
        top: 672
        right: 934
        bottom: 774
      }
      class_name: "android.widget.TextView"
      text: "Stuffed Crust - Cheese Maxx\n+ Add Spiced Paneer (₹70)"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 806
        right: 243
        bottom: 869
      }
      class_name: "android.widget.LinearLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 935
        right: 932
        bottom: 985
      }
      class_name: "android.widget.TextView"
      text: "Free Pizza"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 964
        top: 935
        right: 1048
        bottom: 985
      }
      class_name: "android.widget.TextView"
      text: "FREE"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 64
        top: 1006
        right: 932
        bottom: 1108
      }
      class_name: "android.widget.TextView"
      text: "Personal Margherita\nPan"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 1140
        right: 243
        bottom: 1203
      }
      class_name: "android.widget.LinearLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 1269
        right: 1048
        bottom: 1415
      }
      class_name: "android.widget.LinearLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 1500
        right: 106
        bottom: 1574
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 138
        top: 1512
        right: 974
        bottom: 1562
      }
      class_name: "android.widget.TextView"
      text: "Add Gift Card"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 1006
        top: 1516
        right: 1048
        bottom: 1558
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 1659
        right: 394
        bottom: 1729
      }
      class_name: "android.widget.TextView"
      text: "Hungry for more?"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 1729
        right: 1080
        bottom: 2003
      }
      class_name: "androidx.recyclerview.widget.RecyclerView"
      is_focusable: true
      is_scrollable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 2045
        right: 176
        bottom: 2057
      }
      class_name: "android.widget.TextView"
      text: "Subtotal"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 966
        top: 2045
        right: 1048
        bottom: 2057
      }
      class_name: "android.widget.TextView"
      text: "₹678"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 806
        right: 95
        bottom: 869
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 127
        top: 812
        right: 148
        bottom: 862
      }
      class_name: "android.widget.TextView"
      text: "1"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 180
        top: 806
        right: 243
        bottom: 869
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 1140
        right: 95
        bottom: 1203
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 127
        top: 1146
        right: 148
        bottom: 1196
      }
      class_name: "android.widget.TextView"
      text: "1"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 180
        top: 1140
        right: 243
        bottom: 1203
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 1269
        right: 1048
        bottom: 1415
      }
      class_name: "android.widget.LinearLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 21
        top: 1761
        right: 809
        bottom: 1971
      }
      class_name: "androidx.cardview.widget.CardView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 830
        top: 1761
        right: 1080
        bottom: 1971
      }
      class_name: "androidx.cardview.widget.CardView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 64
        top: 1291
        right: 127
        bottom: 1354
      }
      class_name: "android.widget.ImageView"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 138
        top: 1291
        right: 953
        bottom: 1393
      }
      class_name: "android.widget.TextView"
      text: "Coupon added: Free Personal Margherita Pizza on bill value of 249"
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 964
        top: 1280
        right: 1027
        bottom: 1343
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 21
        top: 1761
        right: 809
        bottom: 1971
      }
      class_name: "android.view.ViewGroup"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 830
        top: 1761
        right: 1080
        bottom: 1971
      }
      class_name: "android.view.ViewGroup"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 21
        top: 1761
        right: 231
        bottom: 1971
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 263
        top: 1796
        right: 656
        bottom: 1846
      }
      class_name: "android.widget.TextView"
      text: "Pepsi"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 263
        top: 1882
        right: 656
        bottom: 1936
      }
      class_name: "android.widget.TextView"
      text: "₹57"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 656
        top: 1761
        right: 809
        bottom: 1971
      }
      class_name: "android.widget.TextView"
      text: "Add"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 830
        top: 1761
        right: 1040
        bottom: 1971
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 1072
        top: 1796
        right: 1080
        bottom: 1846
      }
      class_name: "android.widget.TextView"
      text: "Classic Bread Stix"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 1072
        top: 1882
        right: 1080
        bottom: 1936
      }
      class_name: "android.widget.TextView"
      text: "₹109"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 1465
        top: 1761
        right: 1080
        bottom: 1971
      }
      class_name: "android.widget.TextView"
      text: "Add"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
  }
}

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