Save or list Mirak 2.0 ad projects
mirak_save_projectSave a new Miracle Ads (Mirak 2.0) draft project to the owner's Metravane AI workspace or list existing saved drafts (free, 0 credits). When action is save (default), inserts a new version-1 draft row (requires title, min 2 chars) without overwriting or deleting existing projects; repeated save calls create separate draft rows (marked write/non-idempotent), returning ok, project (id, title, mode, format, industry, language, offer_url, attribution_id, state, version, updated_at), studio_url, and credits. When action is list, performs a read-only query of up to 25 newest drafts, returning ok, projects, studio_url, and credits. Use after mirak_plan_ad or mirak_repair_scene to persist drafts; use mirak_create_pack for multi-hook performance packs.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mirak_save_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Miracle Ads creation mode saved on the draft (default quick_ad): quick_ad, live_director, product_demo, premium_director, performance_pack, ad_remake, campaign_builder, or smart_repurpose. | |
| brief | No | Creative brief text stored in the project draft (up to 3000 characters). | |
| title | No | Project title (required when action is save, 2 to 160 characters; ignored when action is list). | |
| action | No | Operation mode: save (default) inserts a new draft project; list returns up to 25 newest saved drafts without writing. | |
| format | No | Ad format family ID (default direct_response; e.g. real_demo, direct_response, ugc, cinematic, saas, local_services, ecommerce, nonprofit). | |
| industry | No | Business industry tag (default small_business; e.g. saas, ecommerce, restaurant, local_services). | |
| language | No | Draft language and Studio locale: en (default), ht (Haitian Creole), fr (French), or es (Spanish). | |
| offer_url | No | Optional destination HTTPS URL associated with the ad project. | |
| attribution_id | No | Optional mirak_cid attribution identifier from mirak_plan_ad (minimum 3 characters). |