The Massachusetts trespass statute reads (emphasis mine)
part IV, Title I, Chapter 266, Section 120
Section 120. Whoever, without right enters or remains in or upon the dwelling house, buildings, boats or improved or enclosed land, wharf, or pier of another, or enters or remains in a school bus, as defined in section 1 of chapter 90, after having been forbidden so to do by the person who has lawful control of said premises, whether directly or by notice posted thereon, or in violation of a court order pursuant to section thirty-four B of chapter two hundred and eight or section three or four of chapter two hundred and nine A, shall be punished by a fine of not more than one hundred dollars or by imprisonment for not more than thirty days or both such fine and imprisonment. Proof that a court has given notice of such a court order to the alleged offender shall be prima facie evidence that the notice requirement of this section has been met. A person who is found committing such trespass may be arrested by a sheriff, deputy sheriff, constable or police officer and kept in custody in a convenient place, not more than twenty-four hours, Sunday excepted, until a complaint can be made against him for the offence, and he be taken upon a warrant issued upon such complaint.
This section shall not apply to tenants or occupants of residential premises who, having rightfully entered said premises at the commencement of the tenancy or occupancy, remain therein after such tenancy or occupancy has been or is alleged to have been terminated. The owner or landlord of said premises may recover possession thereof only through appropriate civil proceedings.
What, exactly, does it mean to enter a dwelling? Does part of the person have to enter the dwelling, like sticking their arm inside a window? Or are they trespassing if they insert a tool into the dwelling, like if they stick a hose in the window? What if they stick a tool against the dwelling, with the design and intent that the tool disrupt something inside the dwelling, such as placing that same hose against the window and blowing high pressure air through at sufficient force to knock books over?
For the sake of this question, assume that the dwelling abuts common or public space, such that touching the outside of the building can be done without entering private property.