A scope in Hanami View is a Ruby class whose instance methods compute the locals required by a partial, so templates can render with a minimal set of inputs. In Wilgosz's example, an `InputScope` takes a field name, errors, placeholder, and label, and derives control class names (`has_icons_right` when an icon is present), placeholder text, input CSS classes (error styling when errors exist), and which icon partial to render. The template then renders the `text_field` partial by just passing the scope, keeping all conditional logic in a plain, testable Ruby object.