The options for the tool.
Readonly[A unique symbol to identify ADK base tool class.
Readonly[A unique symbol to identify ADK computer use tool class.
Readonly[A unique symbol to identify ADK function tool class.
ReadonlydescriptionReadonlyfuncThe wrapped computer control function.
ReadonlyisReadonlynameReadonlyscreenThe actual screen size as (width, height) in pixels.
ReadonlyvirtualThe virtual coordinate space as (width, height).
The Google API LLM variant to use.
Invokes the tool in live streaming mode, injecting any active input stream from the invocation context and yielding items from the returned stream.
The live tool invocation request.
Returns the function declaration derived from the tool's name, description, and parameter schema.
Whether this call needs user confirmation: when the model marked it with
a safety_decision of require_confirmation, or when the base tool says
so.
The arguments the tool would run with.
OptionaltoolContext: Context
The context of the call, when there is one.
Whether the call requires confirmation.
Adds nothing to the request: ComputerUseToolset adds the single computer use configuration and registers its tools by name.
Runs the computer control function with scaled coordinates.
The tool request containing arguments and tool context.
The function's result, with a ComputerState converted to a response carrying the base64-encoded screenshot.
A tool that wraps computer control functions for use with LLMs.
This tool scales coordinates from a virtual coordinate space (by default 1000x1000) to the actual screen size. This lets the model work with a consistent coordinate system regardless of the actual screen dimensions, which makes its output more predictable.
When the wrapped function returns a ComputerState, the tool returns
{image: {mimetype, data}, url}with the screenshot base64-encoded; the agent then sends the image to the model as part of the function response.When the model marks a call with a
safety_decisionofrequire_confirmation, the tool asks the user to confirm before it runs and addssafety_acknowledgement: 'true'to the response once confirmed.