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

# type_text

Fill using exactly one of selector or label. label matches an exact visible associated label or accessible name, freshly on every call and batch row. Use within (CSS container) to disambiguate duplicate labels. Stops on missing, ambiguous or stale targets. Clicks first, clears unless clear=false, and uses native input. Label targeting supports text inputs, textareas and contenteditable in the main document.

## 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
{
  "label": "Email",
  "text": "alex@example.com"
}
```


## Usage notes

Use exactly one of label and selector. The example assumes a field with the accessible label Email. For hosted-frame fills, use selector rather than label.

## Result

Fills the resolved field and returns action outcome information. clear controls replacement versus appending where supported.

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 |
| --- | --- | --- | --- |
| `selector` | string | No | CSS selector, or read_page ref; mutually exclusive with label minLength: 1 |
| `label` | string | No | Exact field label/accessibility name, whitespace normalized; resolved anew each fill minLength: 1; maxLength: 500 |
| `within` | string | No | Optional unique visible CSS container for label targeting minLength: 1; maxLength: 2000 |
| `text` | string | Yes | See usage and full schema below. |
| `clear` | boolean | No | Clear the field 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": {
    "selector": {
      "description": "CSS selector, or read_page ref; mutually exclusive with label",
      "type": "string",
      "minLength": 1
    },
    "label": {
      "description": "Exact field label/accessibility name, whitespace normalized; resolved anew each fill",
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    },
    "within": {
      "description": "Optional unique visible CSS container for label targeting",
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "text": {
      "type": "string"
    },
    "clear": {
      "description": "Clear the field 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": [
    "text"
  ],
  "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/)
