Add a filter to the segment on screen, as a person does: the "Filters" tab, the field chosen in the list of filters (from the "Contact" fields, or from the group named after "from": "Primary company", "Contact Behavior and Actions"), then its operator and its value. A value of a list (a tag, a country) is chosen in its picker.
Examples
When I add the filter "City" is equal to "Amman"
When we add the filter "Tags" includes any of "newsletter"
And I add the filter "Last Name" contains "Haddad"
When I add the filter "City" from "Primary company" is equal to "Amman"
When I add the filter "Email" ends with "@example.com"
Pattern
When(/^(?:I|we) add the filter "([^"]*)"(?: from "([^"]*)")? (.+?) "([^"]*)"$/, …)
Part of @webship-js/mautic-steps (github.com/webship/mautic-steps), a step pack for Webship-js 2.0.x.