resolve_step
Resolve a Gherkin step phrase to existing matching step definitions, showing exact, ambiguous, or no matches so you reuse code and avoid duplicates.
Instructions
Resolve a Gherkin step phrase to the EXISTING step definition(s) that would bind it — the same way the runner does (regex/cucumber expression, keyword-agnostic). Use this BEFORE writing a new step so an agent reuses what already exists instead of authoring a duplicate. status is 'exact' (one binding — reuse it), 'ambiguous' (several match — a conflict to resolve), or 'none' (nothing binds — returns existing step definitions ranked by shared terms, to adapt rather than duplicate). Each match returns the expression, the C# class/method, the method parameters, the argument values captured from the phrase, and file:line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The step phrase to resolve, without the leading Given/When/Then keyword (e.g. "the customer checks out"). | |
| keyword | No | Optional; informational only — matching is keyword-agnostic, as in Reqnroll/SpecFlow. |