Gui

From healthonrails/annolid · View interactive version

Gui is an AI agent skill from the GitHub repository healthonrails/annolid. Use Annolid GUI tools for robust automation across web, PDF, video, and chat controls.

How to use this skill

Skill file

GUI Automation

Use Annolid GUI tools when tasks depend on current app state (opened video, PDF, or embedded web page).

Core State

Web Workflows

Best practices:

  1. Start with gui_web_run_steps including open_url, wait, then get_text.
  2. Prefer element index selectors from page text ([12: ...]) over guessed CSS selectors.
  3. Add explicit wait after navigation/click on dynamic sites.
  4. Re-run get_text after each state-changing action before next click/type.

PDF Workflows

Best practices:

  1. Call gui_pdf_get_state before extraction to confirm a PDF is loaded.
  2. Use smaller max_chars/pages first, then widen if needed.
  3. When opening by URL fails, call gui_list_pdfs and retry with explicit local path.

Video and Model Workflows

Best practices:

  1. Open video and set frame explicitly before segmentation/tracking.
  2. Keep prompts short and object-specific for segmentation.
  3. Use gui_segment_track_video for integrated open+segment(+track) flows.
  4. Use gui_correct_tracking_ndjson when a tracking NDJSON needs frame-level correction from SAM3-agent artifacts or temporal repair after occlusion.
  5. Stop realtime stream explicitly when finished.

Behavior Annotation and Labeling

When using gui_label_behavior_segments, prefer behavior-observer style criteria:

  1. Describe only observable animal facts (pose, locomotion, grooming/rearing/sniffing, tail and paw contact).
  2. Avoid environmental commentary and avoid intent/emotion speculation.
  3. Keep the observation concise (about 2–4 sentences) and then classify to exactly one label from the defined behavior list.
  4. Return structured JSON-compatible outputs whenever the model/provider supports it, so downstream timeline/log writing remains robust.

Reliability Pattern

For robust execution:

  1. Read state (gui_context, PDF/web state tools).
  2. Execute one focused action.
  3. Validate result from returned JSON.
  4. Retry with a narrower fallback action if needed.

Do not assume the UI state; verify it before every multi-step automation sequence.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.