{
  "api_version": 1,
  "documentation": "https://framade.app/framade/agents?lang=en",
  "name": "Framade Agent",
  "platform": "macOS",
  "repository": "https://github.com/andyforever/framade-agent",
  "time_unit": "milliseconds",
  "tools": [
    {
      "annotations": {
        "destructiveHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Find the workspace paths and interface version. Place local media in Inputs before importing.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "name": "workspace_info"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "List drafts in this workspace, newest first. Use offset to page beyond limit.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "limit": {
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "offset": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [],
        "type": "object"
      },
      "name": "list_projects"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "openWorldHint": false,
        "readOnlyHint": false
      },
      "description": "Create an editable draft with optional local clips. Sources are copied in the given order.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "aspect": {
            "enum": [
              "landscape",
              "portrait",
              "square"
            ],
            "type": "string"
          },
          "paths": {
            "description": "File paths relative to Inputs, or absolute paths within Inputs.",
            "items": {
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "type": "array"
          },
          "title": {
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "type": "object"
      },
      "name": "create_project"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Read a draft revision, timeline duration, picture clips, overlays and audio tracks. Times are milliseconds.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "project_id"
        ],
        "type": "object"
      },
      "name": "inspect_project"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "openWorldHint": false,
        "readOnlyHint": false
      },
      "description": "Apply ordered edits atomically on the inspected revision. Returns updated IDs and one undo token for the entire batch.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "expected_revision": {
            "minimum": 1,
            "type": "integer"
          },
          "operations": {
            "items": {
              "oneOf": [
                {
                  "additionalProperties": false,
                  "properties": {
                    "before_clip_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "op": {
                      "const": "import_media",
                      "type": "string"
                    },
                    "paths": {
                      "description": "File paths relative to Inputs, or absolute paths within Inputs.",
                      "items": {
                        "minLength": 1,
                        "type": "string"
                      },
                      "maxItems": 100,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "op",
                    "paths"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "op": {
                      "const": "set_title",
                      "type": "string"
                    },
                    "title": {
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "op",
                    "title"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "aspect": {
                      "enum": [
                        "landscape",
                        "portrait",
                        "square"
                      ],
                      "type": "string"
                    },
                    "op": {
                      "const": "set_aspect",
                      "type": "string"
                    }
                  },
                  "required": [
                    "op",
                    "aspect"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "clip_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "duration_ms": {
                      "description": "Duration on the timeline after applying the clip speed.",
                      "minimum": 1,
                      "type": "integer"
                    },
                    "op": {
                      "const": "set_clip_range",
                      "type": "string"
                    },
                    "source_start_ms": {
                      "description": "Offset from the start of the source video. Omit to retain the current start. Photos use zero.",
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "op",
                    "clip_id",
                    "duration_ms"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "at_ms": {
                      "description": "Time on the project timeline in milliseconds, from zero.",
                      "minimum": 0,
                      "type": "integer"
                    },
                    "clip_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "op": {
                      "const": "split_clip",
                      "type": "string"
                    }
                  },
                  "required": [
                    "op",
                    "clip_id",
                    "at_ms"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "before_clip_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "clip_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "op": {
                      "const": "move_clip",
                      "type": "string"
                    }
                  },
                  "required": [
                    "op",
                    "clip_id"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "clip_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "op": {
                      "const": "remove_clip",
                      "type": "string"
                    }
                  },
                  "required": [
                    "op",
                    "clip_id"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "at_ms": {
                      "description": "Time on the project timeline in milliseconds, from zero.",
                      "minimum": 0,
                      "type": "integer"
                    },
                    "duration_ms": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "op": {
                      "const": "add_text",
                      "type": "string"
                    },
                    "size": {
                      "maximum": 0.4,
                      "minimum": 0.03,
                      "type": "number"
                    },
                    "text": {
                      "minLength": 1,
                      "type": "string"
                    },
                    "x": {
                      "maximum": 1,
                      "minimum": 0,
                      "type": "number"
                    },
                    "y": {
                      "maximum": 1,
                      "minimum": 0,
                      "type": "number"
                    }
                  },
                  "required": [
                    "op",
                    "text",
                    "at_ms",
                    "duration_ms"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "at_ms": {
                      "description": "Time on the project timeline in milliseconds, from zero.",
                      "minimum": 0,
                      "type": "integer"
                    },
                    "duration_ms": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "op": {
                      "const": "add_caption",
                      "type": "string"
                    },
                    "size": {
                      "maximum": 0.4,
                      "minimum": 0.03,
                      "type": "number"
                    },
                    "text": {
                      "minLength": 1,
                      "type": "string"
                    },
                    "x": {
                      "maximum": 1,
                      "minimum": 0,
                      "type": "number"
                    },
                    "y": {
                      "maximum": 1,
                      "minimum": 0,
                      "type": "number"
                    }
                  },
                  "required": [
                    "op",
                    "text",
                    "at_ms",
                    "duration_ms"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "at_ms": {
                      "description": "Time on the project timeline in milliseconds, from zero.",
                      "minimum": 0,
                      "type": "integer"
                    },
                    "duration_ms": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "kind": {
                      "enum": [
                        "music",
                        "effects"
                      ],
                      "type": "string"
                    },
                    "op": {
                      "const": "add_audio",
                      "type": "string"
                    },
                    "path": {
                      "minLength": 1,
                      "type": "string"
                    },
                    "replace_music": {
                      "type": "boolean"
                    },
                    "volume": {
                      "maximum": 1,
                      "minimum": 0,
                      "type": "number"
                    }
                  },
                  "required": [
                    "op",
                    "path",
                    "at_ms"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "muted": {
                      "type": "boolean"
                    },
                    "op": {
                      "const": "set_original_audio_muted",
                      "type": "string"
                    }
                  },
                  "required": [
                    "op",
                    "muted"
                  ],
                  "type": "object"
                }
              ]
            },
            "maxItems": 100,
            "minItems": 1,
            "type": "array"
          },
          "project_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "project_id",
          "expected_revision",
          "operations"
        ],
        "type": "object"
      },
      "name": "edit_project"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "openWorldHint": false,
        "readOnlyHint": false
      },
      "description": "Undo the whole batch identified by an undo token. The draft must still be at the revision returned by that batch.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "expected_revision": {
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "format": "uuid",
            "type": "string"
          },
          "undo_token": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "project_id",
          "expected_revision",
          "undo_token"
        ],
        "type": "object"
      },
      "name": "undo_edit"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "openWorldHint": false,
        "readOnlyHint": false
      },
      "description": "Render the edited frame at a timeline time. Returns a PNG path and an image to MCP clients.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "at_ms": {
            "description": "Time on the project timeline in milliseconds, from zero.",
            "minimum": 0,
            "type": "integer"
          },
          "expected_revision": {
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "project_id",
          "expected_revision",
          "at_ms"
        ],
        "type": "object"
      },
      "name": "preview_frame"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "openWorldHint": false,
        "readOnlyHint": false
      },
      "description": "Export an inspected revision to a new MP4 file. MCP returns a session job ID to poll or cancel. CLI waits for completion.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "expected_revision": {
            "minimum": 1,
            "type": "integer"
          },
          "filename": {
            "description": "New plain filename ending in .mp4. Saved in Exports.",
            "type": "string"
          },
          "fps": {
            "enum": [
              24,
              30,
              60
            ],
            "type": "integer"
          },
          "project_id": {
            "format": "uuid",
            "type": "string"
          },
          "resolution": {
            "enum": [
              720,
              1080,
              2160
            ],
            "type": "integer"
          }
        },
        "required": [
          "project_id",
          "expected_revision",
          "filename"
        ],
        "type": "object"
      },
      "name": "export_video"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Read the state, progress and final path of an export in this MCP session.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "job_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "job_id"
        ],
        "type": "object"
      },
      "name": "export_status"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "openWorldHint": false,
        "readOnlyHint": false
      },
      "description": "Request cancellation of this MCP session's export. Poll export_status until it reaches a terminal state.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "job_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "job_id"
        ],
        "type": "object"
      },
      "name": "cancel_export"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "openWorldHint": false,
        "readOnlyHint": false
      },
      "description": "Open this saved draft for continuing edits in the Framade video editor on the local Mac. Requires the packaged app.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "project_id"
        ],
        "type": "object"
      },
      "name": "open_project"
    }
  ],
  "transport": "stdio"
}
