The GeoGebra Javascript API can be triggered using Buttons and Input fields.
Hide point A Show point A
Use the input field as you would directly in the app. Enter ie. D=(0,0) to create a point.