Widget forms

From ChatCut-Inc/agent-plugin · View interactive version

Widget forms is an AI agent skill from the GitHub repository ChatCut-Inc/agent-plugin. Adapt ChatCut questions and previews to the media and interaction surfaces that Antigravity reliably supports.

How to use this skill

Skill file

Antigravity Interaction Adapter

Antigravity has no documented native option-card widget. Use concise ordinary text choices with stable ids mapped internally. Use chat image bubbles only when the host can display images in chat and only for the visual-preview cases defined below; otherwise describe the options in text.

Stable visual-preview path

When the host can display images in chat, use normal chat image bubbles only for Motion Graphic references, Design Style preset thumbnails or character photos. Otherwise present text descriptions with the same choices.

For an MG reference, Design Style or character choice:

  1. Select a small relevant set, normally 3–6 options.
  2. Obtain each returned thumbnail or preview-image URL from the live tool result or the pinned widget-media manifest. Never invent or rewrite the URL.
  3. Download each image to a temporary local file readable by the host. Do not save it into the plugin package or the user's project unless the workflow separately requires an import.
  4. If the host can display images in chat, display the downloaded images as ordinary chat image bubbles in choice order; otherwise describe each option in text.
  5. Immediately follow them with concise localized choices, using concise ordinary text choices. Keep every visible label mapped to the exact returned preset or reference id.
  6. Stop and wait for the user's selection. If an image cannot be downloaded or displayed, omit that bubble and keep the corresponding choice; do not expose the source URL.

A character choice uses this path too, with each character's main image URL from manage_character get and its characterId as the stable id. Do not use it for voices, audio samples, generated project video, or general project preview.

Text questions and choices

For every other question, ask only the minimum blocking question. Use concise ordinary text choices, while keeping stable ids mapped internally.

Audio and video restrictions

Voice samples are auditioned in ChatCut rather than in chat. For a newly cloned voice, report that its preview is ready in ChatCut, provide the clean editor link supplied by the project workflow, and ask the user to reply with Retry or Apply after listening.

Do not represent a project preview as an embedded video or popup. Project and timeline workflows must provide the clean ChatCut editor link; internal inspection tools may still be used for agent verification.

Semantic contract mapping

This adapter implements the caller's host-neutral input contract; it does not decide which fields the workflow requires. Write visible text in the user's language, ask only for missing inputs, wait for the user's answer, and validate every blocking answer before continuing. Never emit raw <widget>, <choices/>, or <visual-option> tags, or call ask_followup_questions expecting a native form.

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.