smart_fill
Fill form fields by matching labels using fuzzy logic (exact, prefix, substring, token). Optionally click a submit button. Returns results and suggests available labels on miss.
Instructions
⭐ Fill form fields by label text (fuzzy match). LLM-friendly alt to fill_form which requires DOM refs.
Args:
fields: {"Label": "value", ...} — keys match form field labels
(case-insensitive, fuzzy: exact > prefix > substring > token).
Labels resolved from <label>, aria-label, placeholder, name.
submit_label: optional button text to click after filling
(e.g., "Create", "Sign in"). Fuzzy-matched on action button text.
Behavior:
- Each field: locates input → focus → clear → type value
- Returns per-field result + list of available labels if missing
- On miss: error includes candidates so the LLM can retry with
the correct label name.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | ||
| submit_label | No |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |