---
title: "Type text into an element"
method: POST
path: "/tabs/{tabId}/type"
tags: ["Interaction"]
---

# Type text into an element

`POST /tabs/{tabId}/type`

Types text into a focused element or a specific ref/selector.

## Path parameters

- `tabId` string, required

## Request body

- object
  - `userId` string, required
  - `ref` string
  - `selector` string
  - `text` string, required
  - `clear` boolean — Clear field before typing.
  - `submit` boolean — Press Enter after typing.

## Response `200`

Type result.

- object

## Other responses

- `400` — Bad request.
- `404` — Tab not found.
- `409` — Page changed or target became invalid; caller should take a fresh snapshot and retry.

## Changes

- **2026-07-17** `b995d1c8bad1` — 1 info
  - removed the non-success response with the status `409`
- **2026-06-01** `6a300e1fadaf` — 1 info
  - added the non-success response with the status `409`

[Change history](https://skmtc.dev/jo-inc/apis/camofox-browser/changes/tabs/:tabId/type/post.md)

---

[API](https://skmtc.dev/jo-inc/apis/camofox-browser.md) · [All operations](https://skmtc.dev/jo-inc/apis/camofox-browser/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jo-inc/camofox-browser/revisions/d007e73dad3d/schema)
