instruction
I want to add my wife's contact number to my phone's contact list and save it as Clara, so save 2111112222 this number as Clara in the Contacts app.
previous_actions
{"name": "click", "parameters": {"x": 666, "y": 366}}
active_application
Contacts
screen_description
windows {
  bounds_in_screen {
    right: 1080
    bottom: 136
  }
  id: 7
  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: 841
        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: 841
        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:41 AM"
      text: "7:41"
      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: 841
        top: 1
        right: 903
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 903
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      content_description: "Battery charging, 92 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: 841
        top: 39
        right: 887
        bottom: 97
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Wifi three bars."
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 903
        top: 51
        right: 923
        bottom: 85
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 923
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.TextView"
      text: "92%"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 133
        top: 1
        right: 191
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Runkeeper notification: End the year uplifted!"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 191
        top: 1
        right: 249
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Blossom notification: \'ihi: Water"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 249
        top: 1
        right: 307
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Tasks notification: Morning walk"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 307
        top: 1
        right: 365
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "PlantIn notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 365
        top: 1
        right: 423
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Gmail notification: 12 new messages"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 423
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Google Play services notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 423
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Pepperfry notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 423
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Gmail notification: 4 new messages"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 423
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Google Play Store notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 383
        top: 1
        right: 423
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Google notification: Weather in Meerut"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 848
        top: 39
        right: 887
        bottom: 97
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 848
        top: 48
        right: 887
        bottom: 87
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 848
        top: 48
        right: 887
        bottom: 87
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
  }
}
windows {
  bounds_in_screen {
    right: 1080
    bottom: 2400
  }
  id: 1123
  title: "Contacts"
  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 {
        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.widget.RelativeLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 263
      }
      class_name: "android.widget.ImageView"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 304
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 263
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.ScrollView"
      is_focusable: true
      is_scrollable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 304
      }
      class_name: "android.view.ViewGroup"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 263
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.RelativeLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 146
        right: 147
        bottom: 293
      }
      class_name: "android.widget.ImageButton"
      is_clickable: true
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 848
        top: 146
        right: 1080
        bottom: 293
      }
      class_name: "androidx.appcompat.widget.LinearLayoutCompat"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 305
        right: 1038
        bottom: 1209
      }
      class_name: "androidx.cardview.widget.CardView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 1251
        right: 137
        bottom: 1356
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1251
        right: 1038
        bottom: 1265
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1297
        right: 1038
        bottom: 1452
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1484
        right: 1038
        bottom: 1498
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1562
        right: 1038
        bottom: 1717
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 1749
        right: 137
        bottom: 1854
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1749
        right: 1080
        bottom: 1910
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 466
        top: 1921
        right: 613
        bottom: 2026
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 2047
        right: 137
        bottom: 2152
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2047
        right: 1080
        bottom: 2219
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 466
        top: 2230
        right: 613
        bottom: 2335
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 2356
        right: 137
        bottom: 2337
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2356
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 466
        top: 2528
        right: 613
        bottom: 2337
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 2654
        right: 137
        bottom: 2337
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2654
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 466
        top: 2786
        right: 613
        bottom: 2337
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 2923
        right: 137
        bottom: 2337
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2923
        right: 1038
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 3131
        right: 137
        bottom: 2337
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 3131
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 466
        top: 3221
        right: 613
        bottom: 2337
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 3347
        right: 137
        bottom: 2337
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 3347
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.TextView"
      text: "dbwscratch.test.id4@gmail.com"
      is_clickable: true
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 848
        top: 156
        right: 975
        bottom: 282
      }
      class_name: "android.widget.Button"
      content_description: "Save"
      is_clickable: true
      is_focusable: true
      depth: 9
      tooltip_text: "Save"
    }
    nodes {
      bounds_in_screen {
        left: 975
        top: 156
        right: 1080
        bottom: 282
      }
      class_name: "android.widget.ImageView"
      content_description: "More options"
      is_clickable: true
      is_focusable: true
      is_long_clickable: true
      depth: 9
      tooltip_text: "More options"
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 305
        right: 1038
        bottom: 1209
      }
      class_name: "android.widget.RelativeLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1265
        right: 1038
        bottom: 1265
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1311
        right: 1038
        bottom: 1452
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1498
        right: 1038
        bottom: 1498
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1576
        right: 1038
        bottom: 1717
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1749
        right: 1080
        bottom: 1910
      }
      class_name: "android.widget.RelativeLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2047
        right: 1080
        bottom: 2219
      }
      class_name: "android.widget.RelativeLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2356
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.RelativeLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2654
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.RelativeLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2937
        right: 1038
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 3131
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.RelativeLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 84
        top: 347
        right: 996
        bottom: 1135
      }
      class_name: "android.widget.ImageView"
      content_description: "Change photo"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 105
        top: 988
        right: 231
        bottom: 1114
      }
      class_name: "android.widget.ImageView"
      content_description: "Toggle favorite"
      is_clickable: true
      is_focusable: true
      is_long_clickable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 849
        top: 988
        right: 975
        bottom: 1114
      }
      class_name: "android.widget.ImageView"
      content_description: "Change photo"
      is_clickable: true
      is_focusable: true
      is_long_clickable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1311
        right: 1038
        bottom: 1452
      }
      class_name: "android.widget.EditText"
      hint_text: "First name"
      text: "First name"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1576
        right: 1038
        bottom: 1717
      }
      class_name: "android.widget.EditText"
      hint_text: "Surname"
      text: "Surname"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1749
        right: 1038
        bottom: 1910
      }
      class_name: "android.widget.LinearLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2052
        right: 1038
        bottom: 2213
      }
      class_name: "android.widget.LinearLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2208
        right: 1038
        bottom: 2219
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2356
        right: 1038
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2654
        right: 841
        bottom: 2337
      }
      class_name: "android.widget.TextView"
      text: "Unknown"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 841
        top: 2654
        right: 1038
        bottom: 2337
      }
      class_name: "android.widget.TextView"
      text: "Birthday"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2937
        right: 1038
        bottom: 2337
      }
      class_name: "android.widget.EditText"
      hint_text: "Notes"
      text: "Notes"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 3142
        right: 1038
        bottom: 2337
      }
      class_name: "androidx.cardview.widget.CardView"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1763
        right: 1038
        bottom: 1910
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2066
        right: 1038
        bottom: 2213
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2370
        right: 1038
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 3142
        right: 1038
        bottom: 2337
      }
      class_name: "android.widget.TextView"
      text: "No groups"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 1763
        right: 1038
        bottom: 1910
      }
      class_name: "android.widget.EditText"
      hint_text: "Number"
      text: "Number"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2066
        right: 1038
        bottom: 2213
      }
      class_name: "android.widget.EditText"
      hint_text: "Email"
      text: "Email"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 137
        top: 2370
        right: 1038
        bottom: 2337
      }
      class_name: "android.widget.EditText"
      hint_text: "Address"
      text: "Address"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 12
    }
  }
}

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