# wallet_mintCollection

Mint a collection of ordinals from a folder of images with proper metadata. This tool creates a collection inscription first, then mints each image as a collection item with the appropriate metadata linking it to the collection.

## Result

An MCP result containing the operation outcome as text, with structured content where supplied. Check isError before using it; an output schema is shown when registered.

## Permissions

This operation can change wallet, account or service state. A connected wallet applies its own permissions. Guarded broadcasts also require broadcasting to be enabled; service authorization is separate from wallet approval.

## Definition 1 (full)

Registered in: Legacy local wallet; Legacy local identity.

Mint a collection of ordinals from a folder of images with proper metadata. This tool creates a collection inscription first, then mints each image as a collection item with the appropriate metadata linking it to the collection.

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| folderPath | string | Yes | Path to folder containing images to mint as a collection |  |
| collectionName | string | Yes | Name of the collection |  |
| description | string | Yes | Description of the collection |  |
| rarityLabels | array of object | No | Rarity labels and their percentages |  |
| rarityLabels[].label | string | Yes |  |  |
| rarityLabels[].percentage | number | Yes |  | minimum: 0; maximum: 100 |
| traits | string | No | Collection traits as JSON string of key-value pairs where values are arrays, e.g. '{"Background": ["Blue", "Red"], "Eyes": ["Big", "Small"]}' |  |
| skipBroadcast | boolean | No | Skip broadcasting transactions (for testing) |  |

Nested requirements apply when their parent is supplied.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "folderPath": {
      "type": "string",
      "description": "Path to folder containing images to mint as a collection"
    },
    "collectionName": {
      "type": "string",
      "description": "Name of the collection"
    },
    "description": {
      "type": "string",
      "description": "Description of the collection"
    },
    "rarityLabels": {
      "description": "Rarity labels and their percentages",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "percentage": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          }
        },
        "required": [
          "label",
          "percentage"
        ]
      }
    },
    "traits": {
      "description": "Collection traits as JSON string of key-value pairs where values are arrays, e.g. '{\"Background\": [\"Blue\", \"Red\"], \"Eyes\": [\"Big\", \"Small\"]}'",
      "type": "string"
    },
    "skipBroadcast": {
      "description": "Skip broadcasting transactions (for testing)",
      "type": "boolean"
    }
  },
  "required": [
    "folderPath",
    "collectionName",
    "description"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
```

[All tools](https://bsvmcp.com/docs/tools)