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
31 lines (30 loc) • 1.27 kB
TypeScript
import { MechanismType, ScreenGrasp2Response, ScreenshotResponse } from '../models/models';
import { SmoothOperatorClient } from '../smooth-operator-client';
/**
* API endpoints for screenshot and analysis operations
*/
export declare class ScreenshotApi {
private client;
/**
* Creates a new instance of the ScreenshotApi
* @param client The SmoothOperatorClient instance
*/
constructor(client: SmoothOperatorClient);
/**
* Captures a screenshot of the entire screen as Base64-encoded image
* @returns Screenshot response containing ImageBase64 property
*/
take(): Promise<ScreenshotResponse>;
/**
* Uses AI to find the x/y coordinate of a UI element based on text description. Takes a fresh screenshot each time.
* @param userElementDescription Text description of the element to find
* @param mechanism The AI mechanism to use for finding the element (defaults to ScreenGrasp2)
* @returns Response with X/Y coordinates
*/
findUiElement(userElementDescription: string, mechanism?: MechanismType): Promise<ScreenGrasp2Response>;
/**
* Returns a string representation of the ScreenshotApi class.
* @returns The string "ScreenshotApi".
*/
toString(): string;
}