> Dea 0.9.9 documentation.
> Canonical page: https://dea.dardanica.app/docs/reference/tools/fill-form/
> Documentation index: https://dea.dardanica.app/llms.txt

# fill_form

Fill a whole form in ONE call: fields maps each field's visible label to its value, e.g. {"Email":"a@b.co","Country":"Kosovo","I agree":true,"Plan":"Pro"}. Text boxes are typed, <select>s pick the option by text or value, checkboxes take true/false, and a radio group (named by its fieldset legend or group label) takes the option's label. Labels match like a person reads them (case, trailing * and : ignored; "Email" finds "Email address" when only one field fits). Every label is found before anything is typed: if one misses or matches several fields, nothing is filled and the error lists the form's field names. Does not submit; click the submit button after. Use within to pick one form when a page has several. Fields can also be named by their name or id from the HTML (custname). Time, date and color fields take their value as text (20:30, 2026-05-31). Checkboxes sharing a name take a list: {"topping":["bacon","onion"]}.

## Example

Call this MCP tool with the argument object below. Replace illustrative IDs, selectors, local paths, and project URLs with values observed in your session.


```json
{
  "fields": {
    "Name": "Alex Example",
    "Email": "alex@example.com"
  }
}
```


## Usage notes

Use the page's actual labels. Scope ambiguous labels with within. Numbers are converted to text; booleans can represent supported checked states.

## Result

Returns a per-field fill report or a targeting/validation failure. This fills controls; submission is a separate action.

Results arrive in MCP content blocks. Most structured results are JSON in text blocks; image tools can include image blocks. Handle errors and partial or truncated data. No formal output schema is declared for this tool.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `fields` | object | Yes | Field label (or its name/id in the HTML) -> value. Several checkboxes sharing a name take a list of options |
| `within` | string | No | CSS selector of the form or container, when the page has several minLength: 1 |
| `clear` | boolean | No | Clear text fields first (default true) |
| `frame` | string | No | Act inside an iframe: selector of the <iframe> element (find_elements/read_page/get_page_text list them). Nested frames chain with " >> ", e.g. "#checkout >> iframe[name=card]". minLength: 1 |
| `tab` | string | No | Tab name or id in your workspace; does not change the visible tab. minLength: 1 |


## Full input schema

The schema includes nested shapes and constraints. Additional semantic constraints can apply at runtime; read the description and usage notes.


```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "fields": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "boolean"
          },
          {
            "type": "number"
          },
          {
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ]
      },
      "description": "Field label (or its name/id in the HTML) -> value. Several checkboxes sharing a name take a list of options"
    },
    "within": {
      "description": "CSS selector of the form or container, when the page has several",
      "type": "string",
      "minLength": 1
    },
    "clear": {
      "description": "Clear text fields first (default true)",
      "type": "boolean"
    },
    "frame": {
      "description": "Act inside an iframe: selector of the <iframe> element (find_elements/read_page/get_page_text list them). Nested frames chain with \" >> \", e.g. \"#checkout >> iframe[name=card]\".",
      "type": "string",
      "minLength": 1
    },
    "tab": {
      "description": "Tab name or id in your workspace; does not change the visible tab.",
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "fields"
  ],
  "additionalProperties": false
}
```


## Related documentation

[Reference conventions](https://dea.dardanica.app/docs/reference/) · [Agent operating guide](https://dea.dardanica.app/docs/agents/) · [Troubleshooting](https://dea.dardanica.app/docs/troubleshooting/)
