> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sia.vision/llms.txt
> Use this file to discover all available pages before exploring further.

# Cast a character draft from a saved reference

> character_cast_draft: permissions and generated input/output contracts.

`character_cast_draft` · Gateway release **0.8.3**

Create a new reusable character draft with details and one saved identity reference in an authorized Storyworld. Search before creating. Reuse operationId for retries; changed input needs a new operationId. Creates no paid media, approvals, canon, production pins or existing-character edits.

Required scopes: `account:read`, `character:draft`. Changes saved state or requests work; review the operation’s effects.

Availability depends on runtime configuration and the permissions granted to this connection. Use live MCP discovery as the authority.

## Input

```json theme={null}
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "storyworldId": {
      "type": "string",
      "pattern": "^[a-fA-F0-9]{24}$",
      "description": "ID of an accessible saved Storyworld returned by discovery. Keep this destination fixed for the operation."
    },
    "operationId": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{16,100}$",
      "description": "Persist a client-generated UUID before this mutation. Repeat identical inputs and this same ID after interruption; a new ID is a new request."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "referenceAssetId": {
      "type": "string",
      "pattern": "^[a-fA-F0-9]{24}$",
      "description": "ID of the saved identity reference image, after inspecting its actual pixels and source record."
    },
    "folderId": {
      "type": "string",
      "pattern": "^[a-fA-F0-9]{24}$"
    },
    "details": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2000
        },
        "appearance": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4000
        },
        "personality": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2000
        },
        "backstory": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4000
        },
        "role": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "description": "The reference view being inspected or assigned; keep the candidate and its receipt tied to this role."
        },
        "ageRange": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        }
      },
      "required": []
    }
  },
  "required": [
    "storyworldId",
    "operationId",
    "name",
    "referenceAssetId",
    "details"
  ]
}
```

## Declared output

This is the declared success schema. Error results and binary media blocks are separate MCP protocol results.

```json theme={null}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "string",
      "const": "1"
    },
    "characterId": {
      "type": "string",
      "pattern": "^[a-f0-9]{24}$"
    },
    "storyworldId": {
      "type": "string",
      "pattern": "^[a-f0-9]{24}$"
    },
    "documentId": {
      "type": "string",
      "pattern": "^[a-f0-9]{24}$"
    },
    "bibleId": {
      "type": "string",
      "pattern": "^[a-f0-9]{24}$"
    },
    "approvalStatus": {
      "type": "string",
      "const": "draft"
    },
    "referenceAssetId": {
      "type": "string",
      "pattern": "^[a-f0-9]{24}$"
    },
    "referenceReviewStatus": {
      "type": "string",
      "const": "pending"
    },
    "referencePin": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "nextActions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "studioUrl": {
      "type": "string"
    }
  },
  "required": [
    "schemaVersion",
    "characterId",
    "storyworldId",
    "documentId",
    "bibleId",
    "approvalStatus",
    "referenceAssetId",
    "referenceReviewStatus",
    "referencePin",
    "nextActions",
    "studioUrl"
  ],
  "additionalProperties": {}
}
```

[All tools](https://docs.sia.vision/mcp-reference.md) · [Permissions](https://docs.sia.vision/authentication.md) · [Media and recovery](https://docs.sia.vision/media-and-recovery.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.