Skip to main content
Glama

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
NameRequiredDescriptionDefault
fieldsYes
submit_labelNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RobithYusuf/mcp-stealth-chrome'

If you have feedback or need assistance with the MCP directory API, please join our Discord server