> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.doc-detective.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.doc-detective.com/_mcp/server.

# type

> Reference for the `type` schema.

## Referenced In

* [Markup definition](/reference/schemas/markup-definition)
* [test](/reference/schemas/test)
* [Resolved context](/reference/schemas/resolved-context)

## Fields

| Field | Type                                                                                                                 | Description                                                                                                                                                            | Default |
| :---- | :------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------ |
| type  | one of: - one of: - string - array of string - object([Type keys (detailed)](/reference/schemas/type-keys-detailed)) | Required. Type keys. To type special keys, begin and end the string with `$` and use the special key's keyword. For example, to type the Escape key, enter `$ESCAPE$`. | —       |

## Examples

```json
{
  "type": "kittens"
}
```

```json
{
  "type": [
    "$ENTER$"
  ]
}
```

```json
{
  "type": [
    "kittens",
    "$ENTER$"
  ]
}
```

```json
{
  "type": {
    "keys": "kittens"
  }
}
```

```json
{
  "type": {
    "keys": [
      "$ENTER$"
    ]
  }
}
```

```json
{
  "type": {
    "keys": [
      "kittens",
      "$ENTER$"
    ],
    "inputDelay": 500
  }
}
```

```json
{
  "type": {
    "keys": [
      "2+2",
      "$ENTER$"
    ],
    "surface": "node",
    "waitUntil": {
      "stdio": "/^4$/"
    },
    "timeout": 5000
  }
}
```

```json
{
  "type": {
    "keys": [
      "$CTRL$",
      "c"
    ],
    "surface": {
      "process": "node"
    }
  }
}
```

```json
{
  "type": {
    "keys": [
      "kittens",
      "$ENTER$"
    ],
    "selector": "#search",
    "surface": {
      "browser": "chrome",
      "tab": "cart"
    },
    "waitUntil": {
      "find": {
        "selector": ".results"
      }
    },
    "timeout": 10000
  }
}
```