进阶 zcode.z.ai 2026-11-25 14:51:22 · 6 阅读

第24章 Computer Use

Core FeaturesComputer Use Computer Use lets ZCode Agent see your screen and operate desktop apps on your computer after you authorize it. For example, it can calculate in Calculator, take notes in Notes, or change settings in system tools. For actions inside web pages, use Browser Automation. Supported platforms: local macOS (12 or later) and Windows. Linux desktops and remote workspaces such as SSH / WSL / Docker are not supported yet. Turn On Computer Use Computer Use is off by default. Turn it on in two steps: Open Settings → Computer Use and turn on Enable Computer Use. (Optional) Turn on Show Computer Use button in the composer. A Computer Use button appears in the composer toolbar so you can check its status and open the settings at any time. Once enabled, the Computer Use button appears in the composer toolbar: On macOS, complete the system permissions below before using Computer Use. On Windows, you can use it as soon as it is enabled. After you turn Computer Use off, conversations that are already open need a ZCode restart to pick up the change. Computer Use Button Status Hover over the Computer Use button to see its current status: StatusWhat it meansIdleStarts automatically the first time you use it; nothing to doEnablingThe Computer Use plugin is starting; wait a momentReadyDescribe the task in the conversationMissing macOS permissionsClick the button and follow the prompts to grant permissionsEnablement failedRestart ZCode and try again, or ask ZCode to investigate the logsConversation runningA task in this conversation is still running, so Computer Use can't be toggled; try again after it finishes Authorization Computer Use has two layers of authorization: one-time system permissions and confirmation before each action. macOS System Permissions ZCode needs two system permissions. The settings page shows Granted or Missing for each: PermissionPurposeAccessibilityRead and operate app interface elements, and simulate keyboard and mouse inputScreen RecordingCapture the screen so ZCode Agent can see the app's current state To grant permissions: In Settings → Computer Use, click Open Accessibility Settings to open the corresponding page in System Settings. Turn on the switch for ZCode in the list. If ZCode is not listed, follow the prompt to drag the ZCode icon into the list. Return to ZCode and grant Screen Recording in the same way. Once both permissions show Granted, Computer Use is ready. Right after you grant them, the status may read Granted, verifying: the system permission is in place and ZCode is checking that it can actually control the interface and capture the screen. If it shows Authorization needs verification, or the status never updates, click Restart Helper; if that doesn't help, click Restart ZCode. Action Confirmation Before operating your computer, ZCode Agent asks for confirmation in the conversation: Allow: allow this action once. Always allow Computer Use in this project: stop asking for confirmation in the current project. Deny: do not perform this action. Whether a confirmation appears depends on the current permission mode. See Safety Confirmation. Example Once Computer Use is enabled and authorized, describe the task in the conversation: Use Computer Use to open Calculator, calculate 1280 × 0.85 + 66, and save the expression and result in a new note in Notes. You can also @ Computer Use in the composer to request it explicitly. ZCode Agent opens Calculator, enters the calculation, then switches to Notes to write down the result. Computer UseStop computer controlOpen CalculatorType “1280*0.85+66”Press ReturnCapture full screenScreenshotOpen NotesRead Notes interfaceType “1280 × 0.85 + 66 = 1154”Picture-in-pictureNotes1280 × 0.85 + 66 = 115Works in the background without taking your mouse or keyboardWhile it runsmacOSPicture-in-pictureWindowsa banner at the top of the screen While it works: macOS: a picture-in-picture window shows the app ZCode Agent is operating in real time, and an on-screen cursor marks where it clicks. ZCode Agent can operate in the background without taking your mouse or keyboard focus. Windows: a banner at the top of the screen indicates that ZCode is operating the computer. In the conversation: each step is grouped into a Computer Use card with screenshots you can click to enlarge. Expand a step to see the action, its result, and the interface state it returned. To stop midway, click Stop computer control. What It Can Do CategoryActionsLookList running apps and windows, read an app's interface, capture the full screen, zoom into a screen regionMouseClick, double-click, right-click, drag, scrollKeyboard and inputType text, fill a value, select text, press a key, hold a keyOtherOpen an app or folder, read and write the clipboard, wait for the interface to respond ZCode Agent prefers to read the app's interface and act on its elements. When the interface changes and an element is no longer valid, it reads the interface again before continuing. Safety Tips Screenshots are sent as tool results to the provider of the selected model. Close or move away any windows containing private or sensitive information before you start. Computer Use has broad desktop permissions. Use it only for trusted tasks, and keep an eye on the app ZCode Agent is operating. Computer Use can read and write the clipboard. Don't leave passwords, verification codes, or other sensitive content on the clipboard while it runs. Only one session can control the computer at a time. Other sessions need to wait. Limitations Computer Use cannot operate while the screen is locked. On macOS, it cannot bring an app to the front. Actions that require an app to be in the foreground may fail. On Windows, launching some apps or taking screenshots may bring a window to the front. Next Steps Browser AutomationLet ZCode Agent open web pages in the built-in browser, click, fill in forms, and verify results.Safety ConfirmationLearn how ZCode asks for confirmation before sensitive actions.PluginComputer Use ships as an official plugin that you can manage on the Plugins page.

评论 (0)