Content

Condition matching the current event’s file content against a regex.

Usage

Source

Content(
    pattern,
    project_only=True,
)

Applies to Edit (new content) and Write (file content) tool events.

Parameter Attributes

pattern: str
project_only: bool = True