{
  "name": "browser_fill_form",
  "description": "Fill multiple form fields at once. Each field uses ref + value. By default, each field is cleared before setting the new value.",
  "arguments": {
    "type": "object",
    "properties": {
      "fields": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "element": {
              "type": "string",
              "description": "Human-readable element description used to obtain permission to interact with the element"
            },
            "ref": {
              "type": "string",
              "description": "Exact target element reference from the page snapshot"
            },
            "value": {
              "type": "string",
              "description": "Value to fill into the field"
            },
            "clear": {
              "type": "boolean",
              "description": "Whether to clear existing content before filling. Defaults to true."
            }
          },
          "required": [
            "element",
            "ref",
            "value"
          ]
        }
      },
      "viewId": {
        "type": "string",
        "description": "Target browser tab ID. If omitted, uses the last interacted tab."
      },
      "take_screenshot_afterwards": {
        "type": "boolean",
        "description": "When true, takes a screenshot after the fill completes. Defaults to false."
      }
    },
    "required": [
      "fields"
    ]
  }
}