{
  "name": "video-parser",
  "toolName": "video_parser",
  "tier": "tool",
  "category": "consuming",
  "title": "Video Deconstruction",
  "description": "Video deconstruction: split a video into reusable assets (audio extraction, ASR transcript, keyframe extraction, scene segmentation).",
  "auth": "required",
  "joinsTake": true,
  "envVars": [
    "RENDER_API_URL",
    "PRIV_TOKEN",
    "CONVERSATION_ID"
  ],
  "scriptPath": "scripts/parse_via_render.py",
  "parameters": {
    "type": "object",
    "properties": {
      "url": {
        "type": "string",
        "description": "Direct remote video URL (required). Share/page links are not supported."
      },
      "scene_threshold": {
        "type": "number",
        "description": "Scene-cut detection threshold 0.0-1.0 (default 0.3)"
      },
      "skip_asr": {
        "type": "boolean",
        "description": "Skip the ASR step"
      },
      "skip_keyframes": {
        "type": "boolean",
        "description": "Skip the keyframe-extraction step"
      },
      "json_output": {
        "type": "boolean",
        "description": "Pipeline mode — emit JSON only on stdout"
      }
    },
    "required": [
      "url"
    ]
  },
  "ui": {
    "primary": [
      "url"
    ],
    "advanced": [
      "scene_threshold",
      "skip_asr",
      "skip_keyframes"
    ],
    "hidden": [
      "json_output"
    ]
  }
}
