{
  "name": "export-jianying",
  "toolName": "export_jianying",
  "tier": "orchestration",
  "category": "consuming",
  "title": "Jianying (CapCut) Draft Export",
  "description": "Jianying (CapCut) draft export: package asset URLs into a draft ZIP that Jianying can import. Supports automatic conversion from a RenderPlan.",
  "auth": "required",
  "envVars": [
    "PRIV_TOKEN",
    "MM_API_BASE_URL",
    "AGENT_NAME"
  ],
  "scriptPath": "scripts/gen_jianying_draft.py",
  "parameters": {
    "type": "object",
    "properties": {
      "from_render_plan": {
        "type": "string",
        "description": "Build the draft from a RenderPlan JSON (replaces --scenes)"
      },
      "scenes": {
        "type": "string",
        "description": "Scene array as JSON (inline string or file path)"
      },
      "title": {
        "type": "string",
        "description": "Draft title"
      },
      "width": {
        "type": "number",
        "description": "Canvas width in pixels (default 1080)"
      },
      "height": {
        "type": "number",
        "description": "Canvas height in pixels (default 1920)"
      },
      "system": {
        "type": "string",
        "enum": [
          "mac",
          "windows"
        ],
        "description": "Draft-root preset"
      },
      "draft_root_path": {
        "type": "string",
        "description": "Explicit Jianying draft root path (overrides --system)"
      },
      "no_download": {
        "type": "boolean",
        "description": "Do not download the ZIP; print the URL only"
      },
      "output": {
        "type": "string",
        "description": "Local download path"
      }
    },
    "required": []
  },
  "ui": {
    "primary": [
      "title"
    ],
    "advanced": [
      "system",
      "width",
      "height",
      "output"
    ],
    "hidden": [
      "from_render_plan",
      "scenes",
      "draft_root_path",
      "no_download"
    ]
  }
}
