{
    "success": true,
    "message": "AI Agent Tool Calling specifications retrieved successfully.",
    "timestamp": "2026-11-30T14:29:12+07:00",
    "timezone": "Asia/Jakarta (WIB, UTC+7)",
    "type": "object",
    "api_version": "2.5",
    "server_url": "https://bobo.buatcvgratis.web.id/api/agent.php",
    "openai_tools": [
        {
            "type": "function",
            "function": {
                "name": "schedule_video",
                "description": "Upload and schedule a video to social media platforms (YouTube Shorts, TikTok, Facebook Reels, Instagram Reels) or post it immediately.",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "title": {
                            "type": "string",
                            "description": "The video title / caption."
                        },
                        "description": {
                            "type": "string",
                            "description": "The detailed video description."
                        },
                        "video_url": {
                            "type": "string",
                            "description": "Direct HTTP/HTTPS URL of the MP4 video file to download and schedule."
                        },
                        "video_id": {
                            "type": "string",
                            "description": "Existing video ID in the library if scheduling an already uploaded video."
                        },
                        "platforms": {
                            "type": "array",
                            "items": {
                                "type": "string",
                                "enum": [
                                    "youtube",
                                    "tiktok",
                                    "facebook",
                                    "instagram"
                                ]
                            },
                            "description": "List of target platforms."
                        },
                        "hashtags": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            },
                            "description": "List of hashtags (e.g. [\"#Shorts\", \"#FYP\", \"#Bobo\"])."
                        },
                        "scheduled_at": {
                            "type": "string",
                            "description": "Scheduled time in WIB (UTC+7). Can be ISO8601 (\"2026-11-27T15:00:00+07:00\"), standard format (\"2026-11-27 15:00:00\"), relative offset (\"+2 hours\", \"+30 minutes\", \"tomorrow 10:00\"), or \"now\"."
                        },
                        "post_immediately": {
                            "type": "boolean",
                            "description": "If true, dispatches the video immediately without waiting for cron."
                        },
                        "platform_providers": {
                            "type": "object",
                            "description": "Optional override provider per platform (e.g. {\"youtube\": \"youtube_direct\", \"tiktok\": \"buffer\"})."
                        }
                    },
                    "required": [
                        "title",
                        "platforms"
                    ]
                }
            }
        },
        {
            "type": "function",
            "function": {
                "name": "list_schedules",
                "description": "List and filter video schedules by platform, status, or search query.",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "status": {
                            "type": "string",
                            "enum": [
                                "pending",
                                "processing",
                                "posted",
                                "failed"
                            ],
                            "description": "Filter by schedule status."
                        },
                        "platform": {
                            "type": "string",
                            "enum": [
                                "youtube",
                                "tiktok",
                                "facebook",
                                "instagram"
                            ],
                            "description": "Filter by target platform."
                        },
                        "q": {
                            "type": "string",
                            "description": "Search keyword in video title or hashtags."
                        },
                        "limit": {
                            "type": "integer",
                            "description": "Maximum items to return (default: 50)."
                        }
                    }
                }
            }
        },
        {
            "type": "function",
            "function": {
                "name": "get_schedule_status",
                "description": "Get the execution status and details of a specific video schedule.",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "schedule_id": {
                            "type": "string",
                            "description": "The schedule ID."
                        }
                    },
                    "required": [
                        "schedule_id"
                    ]
                }
            }
        },
        {
            "type": "function",
            "function": {
                "name": "post_now",
                "description": "Immediately dispatch a pending or failed video schedule without waiting for cron.",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "schedule_id": {
                            "type": "string",
                            "description": "The schedule ID to post immediately."
                        }
                    },
                    "required": [
                        "schedule_id"
                    ]
                }
            }
        },
        {
            "type": "function",
            "function": {
                "name": "edit_schedule",
                "description": "Update the scheduled time or delivery provider for a schedule.",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "schedule_id": {
                            "type": "string",
                            "description": "The schedule ID."
                        },
                        "scheduled_at": {
                            "type": "string",
                            "description": "New scheduled time in WIB (ISO8601, standard format, or relative offset)."
                        },
                        "provider": {
                            "type": "string",
                            "enum": [
                                "default",
                                "auto",
                                "youtube_direct",
                                "buffer",
                                "composio"
                            ],
                            "description": "Delivery provider."
                        }
                    },
                    "required": [
                        "schedule_id"
                    ]
                }
            }
        },
        {
            "type": "function",
            "function": {
                "name": "delete_schedule",
                "description": "Delete / cancel a video schedule.",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "schedule_id": {
                            "type": "string",
                            "description": "The schedule ID to delete."
                        }
                    },
                    "required": [
                        "schedule_id"
                    ]
                }
            }
        },
        {
            "type": "function",
            "function": {
                "name": "get_system_status",
                "description": "Check the scheduler system status, active providers, and current WIB server time.",
                "parameters": {
                    "type": "object",
                    "properties": []
                }
            }
        }
    ]
}