Anchor Browser icon

Anchor Browser

Interact with Anchor Browser API for browser automation and control

OS Level Control → Copy Text

AI-generated

Summary

Copy specified text to the clipboard within a specific browser session controlled via the Anchor Browser API.

Inputs

  • Base URL — The base URL for the Anchor Browser API. Defaults to 'https://api.anchorbrowser.io'.
  • Session ID (required) — The ID of the browser session used to perform the clipboard operation.
  • Clipboard Configuration - Text (required) — The text string to copy into the clipboard (cannot be empty).

Output shape

a single JSON object confirming the clipboard operation success or containing error details if the operation fails.

Requires a valid Session ID; the text to copy must be non-empty. Throws errors if parameters are missing or invalid.

Examples

Example 1: Copy text to clipboard in a running browser session

Set 'Session ID' to the target session, enter the desired text to copy under 'Clipboard Configuration'. The node copies the text to the clipboard in that session via a POST request to the /copy API endpoint.

Discussion