instruction
I decided to create a drawing for my mechanical engineering projects, so create a drawing of a line with the black pen in the Whiteboard app.
previous_actions
{"name": "open_app", "parameters": {"app_name": "Whiteboard"}}
{"name": "wait", "parameters": {}}
{"name": "click", "parameters": {"x": 519, "y": 565}}
active_application
Whiteboard
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: 365
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 819
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 365
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 819
        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: "4:48 PM"
      text: "4:48"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 133
        top: 1
        right: 365
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 819
        top: 1
        right: 881
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 881
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      content_description: "Battery charging, 100 percent."
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 133
        top: 1
        right: 365
        bottom: 136
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 819
        top: 39
        right: 865
        bottom: 97
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Wifi three bars."
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 881
        top: 51
        right: 901
        bottom: 85
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 901
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.TextView"
      text: "100%"
      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: Natalie Larson"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 249
        top: 1
        right: 307
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Google Play services notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 307
        top: 1
        right: 365
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Gmail notification: 8 new messages"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 826
        top: 39
        right: 865
        bottom: 97
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 826
        top: 48
        right: 865
        bottom: 87
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 826
        top: 48
        right: 865
        bottom: 87
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
  }
}
windows {
  bounds_in_screen {
    right: 1080
    bottom: 2400
  }
  id: 5651
  title: "Whiteboard"
  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: 136
      }
      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: 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.webkit.WebView"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1084
        bottom: 2339
      }
      class_name: "android.webkit.WebView"
      text: "Microsoft Whiteboard"
      is_focusable: true
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1084
        bottom: 2339
      }
      class_name: "android.view.View"
      is_clickable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1084
        bottom: 2339
      }
      class_name: "android.view.View"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1084
        bottom: 136
      }
      class_name: "android.widget.TextView"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 63
        top: 157
        right: 189
        bottom: 157
      }
      class_name: "android.widget.Button"
      hint_text: "Set focus on the whiteboard canvas"
      text: "Skip to whiteboard canvas"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 178
        right: 1084
        bottom: 317
      }
      class_name: "android.view.View"
      is_clickable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1084
        bottom: 2339
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: -5
        top: 136
        bottom: 136
      }
      class_name: "android.widget.TextView"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: -5
        top: 136
        bottom: 136
      }
      class_name: "android.widget.TextView"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1084
        bottom: 2339
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: -5
        top: 136
        bottom: 136
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 178
        right: 181
        bottom: 317
      }
      class_name: "android.view.View"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 630
        top: 178
        right: 1042
        bottom: 317
      }
      class_name: "android.view.View"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 903
        top: 2159
        right: 1052
        bottom: 2309
      }
      class_name: "android.widget.Button"
      hint_text: "Browse and select content you can insert onto the whiteboard."
      text: "Create"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1084
        bottom: 2339
      }
      class_name: "android.view.View"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: -5
        top: 136
        bottom: 136
      }
      class_name: "android.widget.TextView"
      text: "Untitled whiteboard opened"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 178
        right: 181
        bottom: 317
      }
      class_name: "android.view.View"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 630
        top: 178
        right: 1042
        bottom: 317
      }
      class_name: "android.view.View"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1084
        bottom: 2339
      }
      class_name: "android.view.View"
      is_clickable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 178
        right: 181
        bottom: 317
      }
      class_name: "android.view.View"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 630
        top: 178
        right: 1042
        bottom: 317
      }
      class_name: "android.view.View"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1084
        bottom: 2339
      }
      class_name: "android.view.View"
      hint_text: "Use the arrow keys to move the canvas. Use the up and down arrow keys while holding the shift key to zoom in and out."
      text: "Whiteboard Canvas. Capture your ideas and collaborate with others"
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 178
        right: 181
        bottom: 317
      }
      class_name: "android.widget.Button"
      hint_text: "View all whiteboards you have access to or create a new one"
      text: "My whiteboards"
      is_clickable: true
      is_focusable: true
      is_focused: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 630
        top: 178
        right: 769
        bottom: 317
      }
      class_name: "android.view.MenuItem"
      hint_text: "Undo your last change"
      text: "Undo"
      is_clickable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 766
        top: 178
        right: 905
        bottom: 317
      }
      class_name: "android.view.MenuItem"
      hint_text: "Redo your last change"
      text: "Redo"
      is_clickable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 903
        top: 178
        right: 1042
        bottom: 317
      }
      class_name: "android.widget.Button"
      hint_text: "Expand to access settings such as: Help, About the app"
      text: "Settings menu"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 695
        top: 243
        right: 703
        bottom: 248
      }
      class_name: "android.widget.TextView"
      text: "Undo your last change"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 832
        top: 243
        right: 837
        bottom: 248
      }
      class_name: "android.widget.TextView"
      text: "Redo your last change"
      depth: 15
    }
  }
}

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