{"name":"studio_deliver","inputSchema":{"type":"object","properties":{"action":{"type":"string","enum":["find_targets","preview","attach_to_planner","publish_organic","replace_paid_creative","restore_paid_creative","status"]},"target_type":{"type":"string","enum":["organic_draft","paid_ad"]},"format":{"type":"string","enum":["image","carousel","video"]},"asset_ids":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"asset_refs":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"asset_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["asset_id","version_id"],"additionalProperties":false}},"draft_id":{"type":"string"},"expected_updated_at":{"type":"string"},"ad_account_id":{"type":"string"},"campaign_id":{"type":"string"},"adset_id":{"type":"string"},"ad_id":{"type":"string"},"expected_creative_id":{"type":"string"},"replacement_id":{"type":"string"},"level":{"description":"Which rung of the paid tree find_targets lists for target_type='paid_ad': campaign | adset | ad. Optional — omitted means 'campaign'.","type":"string","enum":["campaign","adset","ad"]},"parent_id":{"type":"string"},"platform":{"type":"string"},"platform_account_id":{"type":"string"},"query":{"type":"string","maxLength":200},"cursor":{"type":"string"},"limit":{"type":"integer","minimum":1,"maximum":50},"intent":{"type":"string","enum":["attach_to_planner","publish_organic","replace_paid_creative","restore_paid_creative"]},"confirm_token":{"type":"string"},"operation_id":{"type":"string","minLength":8,"maxLength":128},"room_id":{"type":"string"}},"required":["action"],"additionalProperties":false,"allOf":[{"if":{"properties":{"action":{"const":"find_targets"}},"required":["action"]},"then":{"required":["target_type"]}},{"if":{"properties":{"action":{"const":"preview"}},"required":["action"]},"then":{"required":["intent"]}},{"if":{"properties":{"action":{"const":"attach_to_planner"}},"required":["action"]},"then":{"required":["format","draft_id","expected_updated_at","confirm_token"]}},{"if":{"properties":{"action":{"const":"publish_organic"}},"required":["action"]},"then":{"required":["format","draft_id","expected_updated_at","confirm_token"]}},{"if":{"properties":{"action":{"const":"replace_paid_creative"}},"required":["action"]},"then":{"required":["format","ad_account_id","campaign_id","adset_id","ad_id","expected_creative_id","confirm_token"]}},{"if":{"properties":{"action":{"const":"restore_paid_creative"}},"required":["action"]},"then":{"required":["ad_account_id","replacement_id","confirm_token"]}},{"if":{"properties":{"action":{"const":"status"}},"required":["action"]},"then":{"required":["operation_id"]}}]}}
