กรณีใช้งาน MCP และ prompt
ตัวอย่าง prompt สำหรับ Gommo remote MCP ใน Cursor (หรือ client อื่น) — ดู tool reference สำหรับพารามิเตอร์
เส้นทางเดียวกับ Quickstart (งานรูปหนึ่งงาน)
REST: Quickstart → วงจร request · MCP (token /th/app/token/): gommo_models_list → gommo_image_create → gommo_task_stream จนได้ URL — อ่านแคตตาล็อก
Gommo MCP เหมือน Quickstart:
1. gommo_credit_balance
2. gommo_models_list type=image
3. gommo_image_create ใช้ ratio/mode จาก catalog เท่านั้น
4. gommo_task_stream จนสำเร็จ ส่ง URLกฎสำคัญ
- Agent ควรเรียก
gommo_models_listก่อนสร้าง media - ห้ามเดา
ratio,mode,resolution,duration - หลัง create เก็บ
id_baseแล้ว poll ด้วยgommo_task_streamหรือ status tool - Image/video create ใช้ credits — ตรวจ
gommo_credit_balanceก่อน
ตรวจยอด & catalog
| คุณพูด | Agent ควรใช้ |
|---|---|
| "ยอด AI credits เหลือเท่าไหร่?" | gommo_credit_balance |
| "โมเดลภาพอะไรใช้ได้?" | gommo_models_list + type: "image" |
| "ratio วิดีโอที่รองรับ?" | gommo_models_list + type: "video" |
สร้างภาพ
สร้างภาพแมวบนจาน ใช้โมเดลจาก catalog แล้วรอจนเสร็จFlow ที่คาดหวัง:
gommo_credit_balance → gommo_models_list (image) → gommo_image_create → gommo_task_streamสร้างวิดีโอ
สร้างคลิปวิดีโอสั้น ทิวทัศน์เมืองตอนกลางคืน ใช้ enum จาก cataloggommo_models_list (video) → gommo_video_create → gommo_task_streamแจ้งเตือนหลังงานยาว
สร้างวิดีโอแล้วแจ้ง Telegram เมื่อเสร็จAgent ควรเรียก gommo_notify_send อย่างตั้งใจหลัง gommo_task_stream สำเร็จ — Cursor ไม่ เรียกอัตโนมัติ
ดูงานเก่า
แสดงงานภาพ/วิดีโอล่าสุด 10 รายการ→ gommo_tasks_list
แมปไป HTTP API
สร้างแอปแทน IDE? ดู endpoint map และ OpenAPI
ขั้นตอนถัดไป
→ MCP tools · Other hosts
