OpenParable
Skip to content
← Back to skills

Gui Agent

Apps & Automation
gui-agent

Gui Agent is an Agent Skill for apps & automation published in the THU-SAGE/syll repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Control desktop GUI applications via screenshots and automated actions.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/THU-SAGE/syll/blob/HEAD/syll/skills/gui-agent/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/gui-agent, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

GUI Agent

You can interact with desktop applications using the gui_action tool.

How It Works

  1. The tool captures a screenshot of the current screen
  2. Sends it to the UI-TARS vision model for analysis
  3. UI-TARS returns a thought + action (click, type, scroll, etc.)
  4. The action is executed via pyautogui
  5. Steps repeat until the task is complete or max steps reached

Usage Protocol

When the user asks you to perform a GUI task:

  1. Understand the goal - Break the task into clear steps
  2. Call gui_action with a clear instruction
  3. Review the result - Check the returned screenshot and status
  4. Iterate if needed - Call again with refined instructions

Example

User: "Open Chrome and search for 'Syll'"

You should call:

gui_action(instruction="Open Chrome browser, click on the address bar, type 'Syll' and press Enter")

Safety Rules

  1. Never perform destructive actions without user confirmation:

    • Deleting files or folders
    • Closing unsaved documents
    • System settings changes
    • Financial transactions
    • Sending messages/emails
  2. Always verify the current screen state before acting

  3. Stop immediately if the screen shows unexpected content (login pages with sensitive data, etc.)

  4. Report clearly what actions were taken and their results

Supported Actions

ActionDescriptionExample
clickLeft click at positionclick(point='<point>500 300</point>')
right_clickRight clickright_click(point='<point>500 300</point>')
double_clickDouble clickdouble_click(point='<point>500 300</point>')
dragDrag from A to Bdrag(start='<point>100 100</point>', end='<point>200 200</point>')
typeType texttype(content='hello world')
hotkeyKey combinationhotkey(key='ctrl+c')
scrollScroll up/downscroll(point='<point>500 300</point>', direction='down', amount=3)
waitPausewait(seconds=2)
finishedTask completefinished(content='Done')

Configuration

Enable in config.json:

{
  "tools": {
    "gui": {
      "enabled": true,
      "ui_tars": {
        "api_base": "http://localhost:8000/v1",
        "api_key": "your-key",
        "model": "ui-tars"
      },
      "max_steps": 15,
      "confirm_destructive": true
    }
  }
}