widget-forms
GitHub指导Agent在ChatCut、Codex及Claude Code等不同插件宿主中,适配并调用各自支持的表单组件(如ask_followup_questions或show_widget)以获取用户结构化输入。
Trigger Scenarios
Install
npx skills add ChatCut-Inc/agent-plugin --skill widget-forms -g -y
SKILL.md
Frontmatter
{
"name": "widget-forms",
"description": "Ask for structured ChatCut input using the current plugin host's supported form surface."
}
Widget Forms Host Adapter
The canonical agent's raw <widget>, <choices/>, and <visual-option> tags render only inside ChatCut. Never emit those tags from the published Codex or Claude Code plugin.
Codex
Call the ChatCut MCP tool ask_followup_questions. Put related fields into one form, write visible text in the user's language, and stop after the call until the submitted answer appears in chat. Use the current tool schema for field and option shapes.
Do not add media-upload fields. Ask for missing source media separately and then use asset-import.
Claude Code
Follow the structured-input recipe in chatcut-plugin-basics-claude: use one visualize.show_widget Elicitation form, submit only through .elicit-submit, and wait for the user to send the filled prompt. Never call ChatCut's ask_followup_questions in Claude Code because that host does not render its MCP-App result.
Version History
-
e1867a8
Current 2026-08-02 23:37
简化了Codex和Claude Code的说明,移除了关于工具发现、缓存及媒体卡片引用的复杂细节,聚焦于核心调用逻辑。
- 5e9afe0 2026-07-22 10:58


