AI全般記事
ブラウザとスマホ、パソコンの画面を操作するAIを作れる機能が、正式提供になりました。
Gemini APIの変更履歴に、画面操作ツールの一般提供の開始が載りました。
使うには、ツール指定に computer_use を入れ、操作先をブラウザなどから選びます。
画面の大きさを渡す必要はなく、座標はモデルが画面に合わせて返します。
まず隔離した仮想マシンかコンテナを立て、その中だけで動かしてください。
出典の原文(引用)
Gemini API changelog(2026-10-30): "Computer Use generally available (GA) : Released the Computer Use tool to general availability (GA) across the Interactions and GenerateContent APIs." / Computer Use docs: "The Computer Use tool lets you build browser, mobile, and desktop control agents that interact with and automate tasks." / 有効化は "type": "computer_use" と "environment"("browser", "mobile", "desktop") / 座標: "the model predicts pixel coordinates scaled to the height and width of the screen." "note that there is no need to specify the display size when issuing a request" / 安全: "Run your agent in a sandboxed VM or container to isolate it from your host system and limit its potential impact."— ai.google.dev
