Scope

From IFWiki

An object is considered to be "in scope" if the player-character is in a position to see or interact with it. For instance, a closed box on a table might be in scope; the scorpion inside the box would not.

Frequently the game's parser uses scope rules to determine what objects the player is likely to be referring to.

See also containment.