ADK for TypeScript: API Reference
    Preparing search index...

    Interface ComputerUseToolOptions

    The options for creating a ComputerUseTool.

    interface ComputerUseToolOptions {
        description: string;
        execute: ComputerUseFunction;
        name: string;
        parameters?: Schema;
        screenSize: readonly [number, number];
        virtualScreenSize?: readonly [number, number];
    }
    description: string

    The description of the action.

    The computer control function to wrap.

    name: string

    The name of the computer use action, such as click_at.

    parameters?: Schema

    The schema of the action's arguments.

    screenSize: readonly [number, number]

    The actual screen size as (width, height) in pixels. This represents the real dimensions of the target screen.

    virtualScreenSize?: readonly [number, number]

    The virtual coordinate space as (width, height) that the model uses to specify coordinates. Coordinates from the model are scaled from this space to screenSize. Defaults to (1000, 1000), so the model works with a 1000x1000 screen regardless of the actual screen dimensions.