Anchor Browser icon

Anchor Browser

Interact with Anchor Browser API for browser automation and control

OS Level Control → Type Text

AI-generated

Summary

Send keystrokes to type specified text into the active context of a browser session controlled by Anchor Browser.

Inputs

  • Base URL — The base URL for the Anchor Browser API; defaults to 'https://api.anchorbrowser.io'.
  • Session ID (required) — The unique identifier of the browser session in which to type the text.
  • Text (required) — The string of text to type via keyboard into the session.
  • Delay — The delay in milliseconds between each keystroke when typing the text.

Output shape

a JSON object representing the outcome of the type text HTTP request; no binary data is returned.

The node executes a POST request to '/v1/sessions/{sessionId}/keyboard/type' with the text and optional delay. The response contains details from the Anchor Browser API about the typing action completion.

Examples

Example 1: Type the text 'Hello, World!' with a 100ms delay between keystrokes in a browser session.

Provide the Session ID and specify the text 'Hello, World!' with Delay set to 100.

Discussion