You need to use CanvasClick to emulate a mouse click and drag in the canvas area.
So - how do you know what x,y coordinates to insert? Where can you find the size of the canvas? What palette would you use to change canvas size?
(assuming you have already selected DragRect)
[VarDef,CanvasWidth,DOCUMENT:Width]
[VarDef,CanvasHeight,DOCUMENT:Height]
[CanvasClick,0,0,CanvasWidth,CanvasHeight]
Sven
edit: actually, since the alpha you are probably using for this is Brush 00 (which is square) you probably would want to find out which dimension (width or height) is the larger, and use THAT dimension for both third and fourth argument. In a landscape canvas you would use:
[CanvasClick,0,0,CanvasWidth,CanvasWidth]

So, what is your script going to do?