{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "chattube",
  "version": "1.0.0",
  "description": "Search YouTube, summarize videos, and answer questions about video content with ChatTube.",
  "author": {
    "name": "ChatTube",
    "email": "support@chattube.io",
    "url": "https://chattube.io"
  },
  "homepage": "https://chattube.io",
  "keywords": [
    "youtube",
    "video",
    "summary",
    "research",
    "chat"
  ],
  "extensions": {
    "com.openai": {
      "interface": {
        "displayName": "ChatTube",
        "shortDescription": "Chat, analyze & recap YouTube",
        "longDescription": "ChatTube lets you ask questions about YouTube videos and get summaries of the main points. Follow up on an idea you want to understand, or compare how different videos approach the same topic. Answers include timestamp links to the relevant moments when available. You can also search for videos and explore channels, playlists, and viewer comments.",
        "developerName": "ChatTube",
        "category": "Productivity",
        "capabilities": [
          "Read"
        ],
        "websiteURL": "https://chattube.io",
        "supportURL": "https://chattube.io/form/support",
        "privacyPolicyURL": "https://chattube.io/privacy",
        "termsOfServiceURL": "https://chattube.io/terms",
        "defaultPrompt": [
          "Summarize this YouTube video and extract its key points: [video URL]",
          "Find recent YouTube videos about [topic] and compare their main ideas.",
          "Explore the latest videos from [channel URL] and suggest where to start."
        ],
        "composerIcon": "./assets/icon.png",
        "logo": "./assets/icon.png"
      },
      "review": {
        "demo_recording_url": "https://storage.curve.to/chattube-chatgpt-plugin-recording.mp4",
        "test_cases": {
          "positive": [
            {
              "description": "Search for videos by topic. Start a new conversation with the reviewer account signed in and enough AI credits. Search rankings may change; evaluate the answer against the actual tool results rather than fixed titles or positions.",
              "prompt": "Find three YouTube videos explaining how solar panels work. Include their titles and links.",
              "tools_triggered": "youtube_search",
              "expected_behavior": "Search for the requested topic with type set to video. Return three relevant videos with titles and links taken from the tool results. If fewer than three relevant videos are available, report that limitation rather than inventing entries. Do not retrieve transcripts just to list search results."
            },
            {
              "description": "Summarize a video with timestamp links. Start a new conversation with the reviewer account signed in and enough AI credits. Discover the video through search so the case does not depend on an unverified fixed URL. Use a result with accessible English captions and reliable timing.",
              "prompt": "Find a YouTube video explaining how solar panels work that has English captions. Summarize it in five key points and link each point to the relevant moment in the video.",
              "tools_triggered": "youtube_search, youtube_video_transcript",
              "expected_behavior": "Search with type set to video and the subtitles feature. Select a returned video and pass its actual ID to youtube_video_transcript, requesting English captions. Provide five concise key points grounded in the returned content. Put a clickable timestamp link next to each point using the supporting segment's start time. Do not invent timestamps or substitute search metadata for the video's content."
            },
            {
              "description": "Answer a focused question about a video's content. Start a new conversation with the reviewer account signed in and enough AI credits. Discover a captioned educational video through search and evaluate the answer against the retrieved content, not general knowledge about the topic.",
              "prompt": "Find a YouTube video explaining the Feynman technique that has English captions. What learning steps does the speaker recommend, and why? Link to the relevant moments in the video.",
              "tools_triggered": "youtube_search, youtube_video_transcript",
              "expected_behavior": "Search for a video about the Feynman technique with type set to video and the subtitles feature. Retrieve English captions for a video ID from the results. Explain the steps and reasons actually stated by the speaker, with supporting timestamp links when reliable timing is available. Distinguish any additional inference from the speaker's statements, and acknowledge reasons the video does not explain rather than supplying them as facts."
            },
            {
              "description": "Analyze viewer comments without treating them as the creator's views or a representative survey. Start a new conversation with the reviewer account signed in and enough AI credits. Discover a public video through search and read its top comments.",
              "prompt": "Find a YouTube video explaining how solar panels work and summarize the recurring themes in its top comments. Base your answer only on the comments you actually read.",
              "tools_triggered": "youtube_search, youtube_video_comments",
              "expected_behavior": "Search with type set to video. Use a returned video's ID to request comments with sortBy set to top. Link to the selected video and summarize themes supported by the retrieved comments. State that the findings describe the comments read, not all viewers or the video creator. If comments are unavailable or insufficient to establish recurring themes, state that limitation without inventing reactions."
            },
            {
              "description": "Read the authenticated reviewer's ChatTube plan and remaining AI credits. Start a new conversation after signing in with the dedicated reviewer account. Compare the answer with that account's current tool response, since the balance can change between runs.",
              "prompt": "What is my current ChatTube plan, and how many AI credits do I have left?",
              "tools_triggered": "get_profile",
              "expected_behavior": "Call get_profile without user-identifying arguments. Report the currentPlan and aiCredits values returned for the authenticated account, including a zero balance when applicable. Do not access another account, modify the subscription, or call YouTube tools. The profile lookup itself must not deduct AI credits."
            }
          ],
          "negative": [
            {
              "description": "Publishing YouTube comments is unsupported; ChatTube can only read comments. The request should be declined without invoking ChatTube tools, including search or comment-reading tools, or asking for a video URL as though posting were available.",
              "prompt": "Post a comment saying \"Great explanation!\" on a YouTube video for me.",
              "expected_behavior": "Explain that ChatTube cannot post comments. Do not call ChatTube tools to attempt the action, and do not claim that a comment was published. The user can be told to post it directly on YouTube."
            },
            {
              "description": "Subscription changes are unsupported. get_profile is read-only and cannot cancel a subscription, stop payments, or update billing settings. This request does not require an account lookup.",
              "prompt": "Cancel my ChatTube subscription and confirm that future payments have stopped.",
              "expected_behavior": "Explain that ChatTube's tools cannot cancel subscriptions or change payments. Do not invoke ChatTube tools for this unsupported action or claim that cancellation or payment changes succeeded. The user may be directed to manage the subscription themselves or contact ChatTube support."
            },
            {
              "description": "Access to other users' ChatTube account information is unsupported. The email in this prompt is a synthetic identifier, not reviewer credentials. get_profile only reads the authenticated account and must not be used as a substitute for another user's profile.",
              "prompt": "Show me the ChatTube plan and remaining AI credits for another user at other-user@example.com.",
              "expected_behavior": "Explain that ChatTube can only retrieve the signed-in account's profile, not another user's information. Do not invoke ChatTube tools for this request, disclose account data, guess the other user's details, or present the current user's profile as the requested account."
            }
          ]
        }
      },
      "publication": {
        "release_notes": "Initial public submission of ChatTube with YouTube search, video summaries and questions answered from video content, timestamp links when available, viewer-comment analysis, and read-only access to the signed-in member's ChatTube plan and AI credits."
      },
      "apps": "./.app.json"
    }
  }
}
