Minecraft wiki entry for execute, associated text: Sets the execution anchor to the eyes or feet. Defaults to feet.
Effectively recenters local coordinates on either the eyes or feet, also changing the angle the facing sub-command (of /execute and /teleport) works off of
Syntax
anchored <anchor> -> execute
Arguments
<anchor>: entity_anchor (eyes or feet)
Whether to anchor the executed command to eyes or feet
Result
Execution anchor is set to either the eyes or the feet.
Unparseable if the argument is not specified correctly.
Example
The effect of /tp is to move a target by placing its feet at the given position.
execute anchored eyes run tp ^ ^ ^ effectively teleports the executor's feet to where its eyes are (the execution position).
execute anchored eyes run tp ^5 ^ ^ means "place the executor's feet 5 blocks left of where its eyes are"