find_locomotive
Resolve a locomotive's name to its DCC address for throttle control when only the name is provided.
Instructions
Resolve a locomotive's spoken/typed name to its DCC address.
Use this whenever the user names a locomotive ("the Autorail", "141R", "start the Pacific") instead of giving a DCC address directly — call this first to get the address, then pass that address to acquire_throttle/set_speed/set_direction/set_function/ lights_on/lights_off/etc.
Matching is tolerant: case-insensitive, accent-insensitive (useful for French names — "boite a sel" matches "Boite à Sel"), and accepts an exact name or an unambiguous partial match ("autorail" matches "Autorail"). If the name matches more than one roster entry, or matches none, this returns an "error" explaining why (listing the candidates or the full roster) instead of guessing — ask the user to clarify rather than picking one yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |