instruction
I want to buy a pair of sports shoes for jogging, so search for a pair of sports shoes for me in the Footshop app.
previous_actions
active_application
adidas
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: 423
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 840
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 423
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 840
        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: "7:56 AM"
      text: "7:56"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 133
        top: 1
        right: 423
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 840
        top: 1
        right: 902
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 902
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      content_description: "Battery charging, 95 percent."
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 133
        top: 1
        right: 423
        bottom: 136
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 840
        top: 39
        right: 886
        bottom: 97
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Wifi three bars."
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 902
        top: 51
        right: 922
        bottom: 85
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 922
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.TextView"
      text: "95%"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 133
        top: 1
        right: 191
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Tasks notification: Morning walk"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 191
        top: 1
        right: 249
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Gmail notification: adidas"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 249
        top: 1
        right: 307
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Gmail notification: 7 new messages"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 307
        top: 1
        right: 365
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Google Play services notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 365
        top: 1
        right: 423
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Google notification: Today\'s forecast · Meerut"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 847
        top: 39
        right: 886
        bottom: 97
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 847
        top: 48
        right: 886
        bottom: 87
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 847
        top: 48
        right: 886
        bottom: 87
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
  }
}
windows {
  bounds_in_screen {
    right: 1080
    bottom: 2400
  }
  id: 3957
  title: "adidas"
  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: 136
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        top: 136
        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.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 1203
      }
      class_name: "android.view.View"
      is_clickable: true
      is_focusable: true
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 1203
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 1203
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 1203
        right: 1080
        bottom: 1406
      }
      class_name: "android.view.ViewGroup"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 1406
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 63
        top: 1282
        right: 933
        bottom: 1327
      }
      class_name: "android.view.ViewGroup"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 954
        top: 1266
        right: 1038
        bottom: 1350
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 1406
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 63
        top: 1282
        right: 933
        bottom: 1327
      }
      class_name: "android.widget.TextView"
      text: "CHECKOUT"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 1406
        right: 1080
        bottom: 1532
      }
      class_name: "android.view.ViewGroup"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 1532
        right: 1080
        bottom: 2337
      }
      class_name: "androidx.recyclerview.widget.RecyclerView"
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 1406
        bottom: 1406
      }
      class_name: "android.view.View"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 84
        top: 1406
        right: 210
        bottom: 1532
      }
      class_name: "android.widget.ImageView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 231
        top: 1406
        right: 996
        bottom: 1452
      }
      class_name: "android.widget.TextView"
      text: "SAMBA OG SHOES"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 231
        top: 1475
        right: 439
        bottom: 1520
      }
      class_name: "android.widget.TextView"
      text: "M 7.5 / W 8.5"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 1532
        right: 1080
        bottom: 1681
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 1684
        right: 1080
        bottom: 1831
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 1834
        right: 1080
        bottom: 1981
      }
      class_name: "android.view.ViewGroup"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 1984
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 1585
        right: 189
        bottom: 1639
      }
      class_name: "android.widget.TextView"
      text: "Shipping"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 252
        top: 1584
        right: 1038
        bottom: 1629
      }
      class_name: "android.widget.TextView"
      text: "Select shipping method"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 252
        top: 1584
        right: 1038
        bottom: 1629
      }
      class_name: "android.view.View"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 1737
        right: 241
        bottom: 1791
      }
      class_name: "android.widget.TextView"
      text: "Promo code"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 241
        top: 1690
        right: 1038
        bottom: 1826
      }
      class_name: "android.widget.LinearLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 1887
        right: 125
        bottom: 1941
      }
      class_name: "android.widget.TextView"
      text: "Total"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 125
        top: 1840
        right: 1038
        bottom: 1976
      }
      class_name: "android.widget.LinearLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 2026
        right: 1038
        bottom: 2071
      }
      class_name: "android.widget.TextView"
      text: "By placing an order you agree to our "
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 2082
        right: 350
        bottom: 2127
      }
      class_name: "android.widget.TextView"
      text: "Terms and Conditions"
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 392
        top: 2082
        right: 1038
        bottom: 2127
      }
      class_name: "android.widget.TextView"
      text: "Privacy Policy"
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 2169
        right: 1038
        bottom: 2295
      }
      class_name: "android.widget.FrameLayout"
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 778
        top: 1732
        right: 1038
        bottom: 1784
      }
      class_name: "android.widget.TextView"
      text: "Pick discount"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 778
        top: 1758
        right: 778
        bottom: 1758
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 864
        top: 1882
        right: 1038
        bottom: 1934
      }
      class_name: "android.widget.TextView"
      text: "$112.00"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 864
        top: 1908
        right: 864
        bottom: 1908
      }
      class_name: "android.widget.ImageView"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 2169
        right: 1038
        bottom: 2295
      }
      class_name: "android.widget.Button"
      text: "PLACE ORDER"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
  }
}

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