selector_hint_save
Saves a working element selector under a short key for a site, so later runs can reuse it instead of rediscovering the element.
Instructions
Remember a selector that worked, under a short key for a site, so later runs can reuse it instead of rediscovering the element. Hints are saved to a JSON file on disk (.selenium-mcp/selector-hints.json in the server's working directory, or SELENIUM_MCP_SELECTOR_HINTS_PATH) and survive restarts. Save a hint after a selector has worked, e.g. after a successful click. Returns the saved hint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Short name for the element, e.g. 'login_button' or 'search_box' (1-128 chars). | |
| domain | No | Site hostname, e.g. 'www.saucedemo.com'. Defaults to the hostname of the page currently open. | |
| selector | Yes | How to find the element, e.g. { by: 'css', value: '#login-button' } or { by: 'id', value: 'user-name' }. Prefer id, name, or a short CSS selector. |