MV Cursor scripting?

Hey, I'm having a little bit of a problem here, I can't seem to find the proper scriptline to get the cursor location.

End goal is to have a paralell event that teleports the player to your mouse location, so that the player can be used as a sort of cursor.

Check the provided pic, so that you might get an idea as to what I'm trying to do.
It's correct, but it's not a variable, but a function call.
Nevertheless, the teleporting won't work like this, because transfer player accepts only map coordinates, while canvasToMap is a screen coordinate.
Thanks Poryg, so what would I have to do to get the desired result? Like for example, if I hover over X=1 and Y=1, the player will instantly move to those coordinates, so instead of clicking to get where you want, you simply move your mouse around and the character follows your mouse without any other input than simply moving your mouse.
Inside the corescripts there's a function to transform the map coordinates to screen coordinates for characters. See rpg_objects.js and search for screenX. Once you find that, you should be able to figure out how to reverse that to obtain map coordinates.
For the repositioning, it might be better to use $gamePlayer.x = and $gamePlayer.y= instead.
Code:
$gameMap.canvasToMapX(TouchInput.x);
$gameMap.canvasToMapY(TouchInput.y);
C.f. rpg_scenes.js:
Spoiler: Relevant excerpt from base code
Code:
Scene_Map.prototype.processMapTouch = function() {
    if (TouchInput.isTriggered() || this._touchCount > 0) {
        if (TouchInput.isPressed()) {
            if (this._touchCount === 0 || this._touchCount >= 15) {
                var x = $gameMap.canvasToMapX(TouchInput.x);
                var y = $gameMap.canvasToMapY(TouchInput.y);
                $gameTemp.setDestination(x, y);
            }
            this._touchCount++;
        } else {
            this._touchCount = 0;
        }
    }
};

Original thread: https://forums.rpgmakerweb.com/threads/mv-cursor-scripting.111619/