GhostfeedGhostfeed MCPv13.2.0
MCP docs

Generations

Track image and video work by its returned generation ID, inspect exact saved prompts and references, and retrieve prior settings for reuse.

get_generation

READ

REST: GET /api/v2/generations/:id

Read an async generation by its gen_ ID for state and finished asset URLs. A generation a task tool made also returns task, the task tool that made it. Terminal states: succeeded, failed, canceled. Pass waitMs (max 25000) to wait server-side until it finishes instead of polling in a loop; call again if it is still running. Images typically take 10-60 seconds, slideshow jobs 1-3 minutes. A succeeded image can be set as a slide background with image: { type: "generation", generationId }. Synchronous create_avatar results are not polled here.

Input schema
{
  "type": "object",
  "properties": {
    "generationId": {
      "type": "string",
      "description": "The gen_ id returned when the generation was started."
    },
    "waitMs": {
      "description": "Wait server-side up to this many milliseconds (max 25000) and return as soon as the generation succeeds, fails or is canceled. Omit to read the current state immediately. Prefer one call with waitMs over repeated quick polls.",
      "type": "integer",
      "minimum": 0,
      "maximum": 25000
    },
    "workspace": {
      "description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
      "type": "string"
    }
  },
  "required": [
    "generationId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "id": "gen_a1b2c3d4e5f64789a1b2c3d4e5f6",
    "kind": "slideshow_variant",
    "state": "succeeded",
    "phase": "compositing",
    "title": "5 Morning Habits That Changed My Skin",
    "input": {
      "mode": "prompt",
      "prompt": "5 morning habits for glowing skin, aimed at women 20-30",
      "slideCount": 6,
      "projectId": "64f1c2a1b2c3d4e5f6072000",
      "workspaceSlug": "client-a"
    },
    "outputs": [
      {
        "type": "slideshow",
        "url": "https://ghostfeed.ai/w/client-a/slideshows/64f1c2a1b2c3d4e5f6072000?ref=agent"
      }
    ],
    "dashboardUrl": "https://ghostfeed.ai/w/client-a/slideshows/64f1c2a1b2c3d4e5f6072000?ref=agent",
    "creditsSpent": 1,
    "createdAt": "2026-07-18T11:40:00.000Z",
    "updatedAt": "2026-07-18T11:42:30.000Z"
  }
}

list_generations

READ

REST: GET /api/v2/generations

List recent ASYNC agent jobs in the active workspace for polling and operational status, newest first. This ledger is not the product media library and must never be used to decide which content exists. Avatar creation is synchronous and never appears. Optionally filter by kind or state. Use render_generation_gallery when the user wants to see the real product library.

Input schema
{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "avatar_image",
        "slideshow_variant",
        "reaction_import",
        "reaction_crop",
        "reaction_smart_crop",
        "reaction_frame",
        "reaction_video",
        "music",
        "voiceover"
      ]
    },
    "state": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "succeeded",
        "failed",
        "needs_action",
        "canceled"
      ]
    },
    "page": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "limit": {
      "description": "Per page (max 40; lower than other tools because these rows carry their full input and outputs).",
      "type": "integer",
      "minimum": 1,
      "maximum": 40
    },
    "workspace": {
      "description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "generations": [
      {
        "id": "gen_a1b2c3d4e5f64789a1b2c3d4e5f6",
        "kind": "slideshow_variant",
        "state": "running",
        "phase": "casting_images",
        "title": "5 Morning Habits That Changed My Skin",
        "input": {
          "mode": "prompt",
          "prompt": "5 morning habits for glowing skin",
          "projectId": "64f1c2a1b2c3d4e5f6072000"
        },
        "outputs": [],
        "dashboardUrl": "https://ghostfeed.ai/w/client-a/slideshows/64f1c2a1b2c3d4e5f6072000?ref=agent",
        "createdAt": "2026-07-18T11:40:00.000Z",
        "updatedAt": "2026-07-18T11:41:00.000Z"
      },
      {
        "id": "gen_b2c3d4e5f60789a1b2c3d4e5f601",
        "kind": "avatar_image",
        "state": "succeeded",
        "input": {
          "traits": {
            "gender": "Female",
            "ageBand": "20s"
          },
          "count": 2
        },
        "outputs": [
          {
            "type": "image",
            "url": "https://cdn.ghostfeed.ai/avatars/64f1/v1.png"
          }
        ],
        "creditsSpent": 2,
        "createdAt": "2026-07-18T09:12:00.000Z",
        "updatedAt": "2026-07-18T09:12:45.000Z"
      }
    ],
    "total": 1,
    "page": 1,
    "pages": 1
  }
}

get_preset

READ

REST: GET /api/v2/prompt-templates/:templateId

Read a preset: the only text the server adds to a task. Pass its preset id, as list_image_models and list_video_models show it: clone_image, clone_image_with_product (clone_image with a product), image_edit, wan_3_motion (motion_to_video on Wan 3 / Wan 3 Prime) or wan_3_audio (audio_to_video on Wan 3 / Wan 3 Prime). On those tasks, leave systemPrompt out to use it, send text to replace it for one generation, or null to remove it. For what a generation actually sent use get_generation_prompt.

Input schema
{
  "type": "object",
  "properties": {
    "templateId": {
      "type": "string",
      "enum": [
        "clone_image",
        "clone_image_with_product",
        "image_edit",
        "wan_3_motion",
        "wan_3_audio",
        "avatar-clone",
        "avatar-product-clone",
        "image-edit",
        "wan3-audio-guided",
        "wan3-video-guided"
      ],
      "description": "A preset id (clone_image, clone_image_with_product, image_edit, wan_3_motion, wan_3_audio), or the text id a saved generation names (promptProvenance.defaultId)."
    }
  },
  "required": [
    "templateId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "templateId": "image-edit",
    "version": "sha256-content-version",
    "presetId": "image_edit",
    "systemPrompt": "IMAGE 1 — THE IMAGE TO CHANGE (this is the base; keep it and edit it): … USER EDIT REQUEST:",
    "nextSteps": "clone_image and image_edit use this preset when systemPrompt is left out. Send systemPrompt text to replace it for one generation, or null to remove it."
  }
}

get_generation_prompt

READ

REST: GET /api/v2/generations/:id/prompt

Read a public generation’s saved system, user, and compiled provider prompts. Missing legacy fields remain unavailable; current defaults are never substituted. Use get_preset for current defaults.

Input schema
{
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
      "type": "string"
    },
    "generationId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The public gen_ ID returned by generation, not a video or image ID."
    }
  },
  "required": [
    "generationId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "generationId": "gen_example",
    "kind": "image",
    "fidelity": "exact",
    "unavailableFields": [],
    "prompt": {
      "systemPrompt": null,
      "userPrompt": "A red ceramic cup on a white table.",
      "compiledProviderPrompt": "A red ceramic cup on a white table.",
      "promptProvenance": {
        "operation": "generate_image",
        "source": "user"
      }
    }
  }
}

get_generation_setup

READ

REST: GET /api/v2/generations/:id/setup

Read what a generation was made with: saved settings, ordered references and prompts, distinguishing exact snapshots from incomplete legacy history. For a generation made by a task tool, request is the call exactly as sent (task, model, prompt, systemPrompt, settings, references, title): to reuse it, send request to the tool named by request.task with workspace and a new idempotencyKey. Older generations have no request; build the task call from setup. This read generates nothing.

Input schema
{
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
      "type": "string"
    },
    "generationId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The public gen_ ID returned by generation, not a video or image ID."
    }
  },
  "required": [
    "generationId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "generationId": "gen_example",
    "kind": "video",
    "fidelity": "partial",
    "prompt": null,
    "setup": null,
    "unavailableFields": [
      "systemPrompt",
      "userPrompt",
      "compiledProviderPrompt",
      "setup"
    ],
    "reason": "This legacy generation did not save an immutable prompt/setup snapshot."
  }
}

get_image

READ

REST: GET /api/v2/images/:imageId

Read an accessible generated/source frame or completed image upload with saved prompt provenance and lineage when available. For a mediaId set source: upload. Use get_generation_prompt for in-flight prompts.

Input schema
{
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
      "type": "string"
    },
    "imageId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "A frameId, or a completed image mediaId when source is upload."
    },
    "source": {
      "default": "frame",
      "type": "string",
      "enum": [
        "frame",
        "upload"
      ]
    }
  },
  "required": [
    "imageId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "image": {
      "imageId": "frame_example",
      "source": "frame",
      "imageUrl": "https://media.ghostfeed.ai/example.png",
      "model": "nano_banana_2",
      "origin": "generated",
      "prompt": {
        "systemPrompt": null,
        "userPrompt": "A red ceramic cup.",
        "compiledProviderPrompt": "A red ceramic cup."
      },
      "lineage": {},
      "unavailableFields": []
    }
  }
}