UNPKG

smooth-operator-agent-tools

Version:

Node.js client library for Smooth Operator Agent Tools - a toolkit for programmers developing Computer Use Agents on Windows systems

38 lines (37 loc) 1.26 kB
import { ActionResponse } from '../models/models'; import { SmoothOperatorClient } from '../smooth-operator-client'; /** * API endpoints for keyboard operations */ export declare class KeyboardApi { private client; /** * Creates a new instance of the KeyboardApi * @param client The SmoothOperatorClient instance */ constructor(client: SmoothOperatorClient); /** * Type text at the current cursor position * @param text Text to type * @returns Action response */ type(text: string): Promise<ActionResponse>; /** * Presses key or hotkey combination (e.g. "Ctrl+C" or "Alt+F4") * @param key Key name or combination * @returns Action response with success status */ press(key: string): Promise<ActionResponse>; /** * Find a UI element based on a text description and type text into it * @param elementDescription Text description of the UI element * @param textToType Text to type * @returns Action response */ typeAtElement(elementDescription: string, textToType: string): Promise<ActionResponse>; /** * Returns a string representation of the KeyboardApi class. * @returns The string "KeyboardApi". */ toString(): string; }