instruction
Open the Martinoz Pizza app and apply a coupon code of MARTINOZ100.
previous_actions
{"name": "open_app", "parameters": {"app_name": "Martinoz Pizza"}}
{"name": "wait", "parameters": {}}
{"name": "click", "parameters": {"x": 586, "y": 2207}}
{"name": "click", "parameters": {"x": 812, "y": 1357}}
{"name": "click", "parameters": {"x": 540, "y": 2169}}
{"name": "wait", "parameters": {}}
active_application
Martinoz Pizza
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:17 AM"
      text: "11:17"
      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: 688
  title: "Martinoz Pizza"
  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: 128
      }
      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: 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.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 233
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 233
        right: 1080
        bottom: 383
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 383
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 154
        right: 1054
        bottom: 233
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 39
        top: 272
        right: 1041
        bottom: 383
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 383
        right: 1080
        bottom: 2337
      }
      class_name: "androidx.recyclerview.widget.RecyclerView"
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 26
        top: 154
        right: 105
        bottom: 233
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 131
        top: 165
        right: 1054
        bottom: 222
      }
      class_name: "android.widget.TextView"
      text: "Coupons"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 52
        top: 285
        right: 857
        bottom: 370
      }
      class_name: "android.widget.EditText"
      hint_text: "Type coupon code here"
      text: "Type coupon code here"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 888
        top: 289
        right: 1010
        bottom: 365
      }
      class_name: "android.view.ViewGroup"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 383
        right: 1080
        bottom: 896
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 896
        right: 1080
        bottom: 1409
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 1409
        right: 1080
        bottom: 2316
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 888
        top: 289
        right: 1010
        bottom: 365
      }
      class_name: "android.widget.TextView"
      text: "APPLY"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 39
        top: 422
        right: 1041
        bottom: 857
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 39
        top: 935
        right: 1041
        bottom: 1370
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 39
        top: 1448
        right: 1041
        bottom: 1883
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1922
        right: 1080
        bottom: 2316
      }
      class_name: "android.widget.LinearLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 39
        top: 422
        right: 1041
        bottom: 857
      }
      class_name: "android.widget.LinearLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 39
        top: 935
        right: 1041
        bottom: 1370
      }
      class_name: "android.widget.LinearLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 39
        top: 1448
        right: 1041
        bottom: 1883
      }
      class_name: "android.widget.LinearLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 39
        top: 448
        right: 1041
        bottom: 516
      }
      class_name: "android.widget.LinearLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 529
        right: 1002
        bottom: 857
      }
      class_name: "android.widget.LinearLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 39
        top: 961
        right: 1041
        bottom: 1029
      }
      class_name: "android.widget.LinearLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1042
        right: 1002
        bottom: 1370
      }
      class_name: "android.widget.LinearLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 39
        top: 1474
        right: 1041
        bottom: 1542
      }
      class_name: "android.widget.LinearLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1555
        right: 1002
        bottom: 1883
      }
      class_name: "android.widget.LinearLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 39
        top: 448
        right: 52
        bottom: 516
      }
      class_name: "android.widget.ImageView"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 453
        right: 356
        bottom: 511
      }
      class_name: "android.widget.TextView"
      text: "Flat ₹100 OFF"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 529
        right: 1002
        bottom: 616
      }
      class_name: "android.widget.TextView"
      text: "Get flat ₹100 off on order above ₹599. Not applicable on existing offers, Pack of 4, Classic Pizza and Beverages."
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 669
        right: 1002
        bottom: 743
      }
      class_name: "android.widget.LinearLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 775
        right: 1002
        bottom: 818
      }
      class_name: "android.widget.LinearLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 39
        top: 961
        right: 52
        bottom: 1029
      }
      class_name: "android.widget.ImageView"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 966
        right: 330
        bottom: 1024
      }
      class_name: "android.widget.TextView"
      text: "Flat ₹75 OFF"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1042
        right: 1002
        bottom: 1129
      }
      class_name: "android.widget.TextView"
      text: "Get flat ₹75 off on order above ₹399. Not applicable on existing offers, Pack of 4, Classic Pizza and Beverages."
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1182
        right: 1002
        bottom: 1256
      }
      class_name: "android.widget.LinearLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1288
        right: 1002
        bottom: 1331
      }
      class_name: "android.widget.LinearLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 39
        top: 1474
        right: 52
        bottom: 1542
      }
      class_name: "android.widget.ImageView"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1479
        right: 334
        bottom: 1537
      }
      class_name: "android.widget.TextView"
      text: "Flat ₹50 OFF"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1555
        right: 1002
        bottom: 1642
      }
      class_name: "android.widget.TextView"
      text: "Get flat ₹50 off on order above ₹299. Not applicable on existing offers, Pack of 4, Classic Pizza and Beverages."
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1695
        right: 1002
        bottom: 1769
      }
      class_name: "android.widget.LinearLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1801
        right: 1002
        bottom: 1844
      }
      class_name: "android.widget.LinearLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 669
        right: 402
        bottom: 743
      }
      class_name: "android.widget.TextView"
      text: "MARTINOZ100"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 402
        top: 706
        right: 819
        bottom: 706
      }
      class_name: "android.widget.LinearLayout"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 819
        top: 671
        right: 1002
        bottom: 740
      }
      class_name: "android.widget.TextView"
      text: "APPLY"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 775
        right: 1002
        bottom: 818
      }
      class_name: "android.widget.TextView"
      text: "Get up to ₹100 off with this code"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1182
        right: 380
        bottom: 1256
      }
      class_name: "android.widget.TextView"
      text: "MARTINOZ75"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1219
        right: 819
        bottom: 1219
      }
      class_name: "android.widget.LinearLayout"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 819
        top: 1184
        right: 1002
        bottom: 1253
      }
      class_name: "android.widget.TextView"
      text: "APPLY"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1288
        right: 1002
        bottom: 1331
      }
      class_name: "android.widget.TextView"
      text: "Get up to ₹75 off with this code"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1695
        right: 383
        bottom: 1769
      }
      class_name: "android.widget.TextView"
      text: "MARTINOZ50"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1732
        right: 819
        bottom: 1732
      }
      class_name: "android.widget.LinearLayout"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 819
        top: 1697
        right: 1002
        bottom: 1766
      }
      class_name: "android.widget.TextView"
      text: "APPLY"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 1801
        right: 1002
        bottom: 1844
      }
      class_name: "android.widget.TextView"
      text: "Get up to ₹50 off with this code"
      depth: 14
    }
  }
}

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