Skill 79 · Amazon Workspaces Agent Access
Subchapter 79.1
references/automation-best-practices.mdMarkdown3 KBView on GitHub
These practices come from how computer-use models actually behave: they analyze screenshots pixel-by-pixel, and the screenshot round-trip is the dominant cost in tokens and latency. Following them produces dramatically more reliable, cheaper runs.
Tool names used below (
key,type_text,screenshot, …) are the desktop tools defined in tools-reference.md. Anything described as a client-side pause or loop runs in your agent’s own code, not on the desktop.
Screenshots are large image payloads. A naive agent screenshots after every click and burns tokens for no benefit.
Group related actions into one sequence with no intermediate screenshots:
key("super+r") → type_text("notepad") → key("Return"). It is more reliable than Start-menu search.launch_application), use those instead of navigating the shell.time.sleep(3) / await asyncio.sleep(3) in your agent loop — the desktop toolset has no wait tool, unlike some computer-use APIs).If the fleet has MCP tool forwarding enabled, use forwarded filesystem/fetch tools instead of driving an app by pixels — reading a file with a forwarded tool is far more reliable than opening it and reading the screen. See tool-forwarding.md.
Apps show update prompts, recovery dialogs, setup wizards. When one appears:
key("Escape") to dismiss, or key("alt+F4") to close a window.key("alt+Tab") to bring the target window back to focus.If an action fails twice, change approach — take a screenshot to re-orient, try a different launch path or coordinates, or use a forwarded tool. Repeating the same failing action wastes budget.
To confirm a task succeeded, check the produced artifact (a saved file via a forwarded filesystem tool, an uploaded screenshot in S3, a changed window title) rather than screenshotting every intermediate step.