Skip to content

fix: drop use_fuzzy_matching from tap_on MCP schema#3181

Draft
pedro18x wants to merge 1 commit intomainfrom
MA-4007-remove-use-fuzzy-matching-from-tap-on
Draft

fix: drop use_fuzzy_matching from tap_on MCP schema#3181
pedro18x wants to merge 1 commit intomainfrom
MA-4007-remove-use-fuzzy-matching-from-tap-on

Conversation

@pedro18x
Copy link
Copy Markdown
Contributor

Summary

tap_on had a use_fuzzy_matching boolean parameter. All it did was decide whether to wrap the text / id value in .*...* before building the ElementSelector (default was true).

The other fields on the schema (text, id, index, enabled, checked, focused, selected) are all real YAML selector keys. use_fuzzy_matching was the odd one out, with no YAML equivalent. When the model generates flow files instead of calling the tool live, it copies the flag into the tapOn: block alongside the valid keys and produces invalid YAML.

Fix

Remove the parameter and always wrap text and id with .*escapeRegex(...).*. Behavior is unchanged for any caller that used the default (true), and there is no MCP-only key left for the model to leak into flows.

The rare "exact regex pass-through" case is still recoverable via run_flow with raw YAML.

Fixes MA-4007.

All the flag did was decide whether to wrap text / id with .*...* before
building the ElementSelector. The other fields on the schema (text, id,
index, enabled, checked, focused, selected) map 1:1 to YAML selector
keys, but use_fuzzy_matching has no YAML equivalent. When the model
generated flow files instead of calling the tool, it copied the flag
into the tapOn: block and produced invalid YAML.

Remove the parameter and always wrap text / id with the fuzzy regex.
Behavior is unchanged for any caller that used the default (true), and
there's no MCP-only key for the model to leak into flows.

Fixes MA-4007
@linear
Copy link
Copy Markdown

linear bot commented Apr 15, 2026

@Fishbowler
Copy link
Copy Markdown
Contributor

always wrap text and id with .*escapeRegex(...).*

This gives me some concern that matching will be worse for shorter strings. Most uses of text and ID selectors are exact strings, not wrapped in wildcards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants