# pinterest_media_import

> Tusella MCP tool. Server `https://mcp.tusella.com/mcp`. Part of the [Tusella docs for AI agents](https://tusella.com/docs/); every tool in one list: [tools.md](https://tusella.com/docs/mcp/tools.md), [tools.json](https://tusella.com/docs/mcp/tools.json).

Import one chat photo into one shop's photo library.

- Title: Pinterest media import
- Group: Pinterest
- Granted by scope: `pinterest:write`
- Team permission: `listing.edit` (a role that can edit listings)
- Effect: Writes to the seller’s Tusella workspace only. Nothing is sent to Etsy or Pinterest.
- Hints: writes · idempotent
- Retry-safe: repeat the same `client_request_id` with the same arguments.
- HTML: https://tusella.com/docs/mcp/tools/pinterest_media_import/
- Markdown: https://tusella.com/docs/mcp/tools/pinterest_media_import.md

## Description

Import one chat photo into one shop's photo library. Returns a ready media_asset_id for single or carousel Pin drafts. No listing is required and importing never submits a Pin. With several shops, name the shop_id the photo belongs to. Retry the same photo with the same client_request_id and shop. Reuse file_id when possible; fresh upload IDs are replayed only after validating identical original bytes.

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `client_request_id` | `string` | yes | Mint once for this deliberate command; reuse the same key and payload on every retry. |
| `file` | `object` | yes | Chat photo file (JPEG, PNG or WebP). The client uploads the local file; Tusella downloads and validates its bytes. |
| `shop_id` | `string` | no | The shop the photo is filed under. Omit it when the team has one shop. |

## Example arguments

```json
{
  "client_request_id": "import-photo",
  "file": {
    "file_id": "chat-photo",
    "download_url": "https://files.test/photo.png"
  }
}
```

## Example result

```json
{
  "result": {
    "media_asset_id": "00000000-0000-0000-0000-000000000001",
    "command_id": "00000000-0000-0000-0000-000000000001",
    "status": "ready",
    "width": 928,
    "height": 928,
    "mime_type": "image/png"
  }
}
```

## Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "client_request_id": {
      "description": "Mint once for this deliberate command; reuse the same key and payload on every retry.",
      "maxLength": 128,
      "type": "string"
    },
    "file": {
      "additionalProperties": false,
      "description": "Chat photo file (JPEG, PNG or WebP). The client uploads the local file; Tusella downloads and validates its bytes.",
      "properties": {
        "download_url": {
          "description": "Temporary public HTTPS download URL supplied by the client; refresh if expired.",
          "maxLength": 16384,
          "minLength": 1,
          "type": "string"
        },
        "file_id": {
          "description": "Client file identifier. Reuse it when possible; a fresh upload identifier requires identical validated bytes on replay.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "file_name": {
          "description": "Optional advisory name, not retained by Tusella.",
          "maxLength": 1024,
          "type": "string"
        },
        "mime_type": {
          "description": "Optional advisory MIME type; the downloaded bytes determine the actual type.",
          "maxLength": 255,
          "type": "string"
        }
      },
      "required": [
        "download_url",
        "file_id"
      ],
      "type": "object"
    },
    "shop_id": {
      "description": "The shop the photo is filed under. Omit it when the team has one shop.",
      "maxLength": 64,
      "type": "string"
    }
  },
  "required": [
    "file",
    "client_request_id"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "command_id": {
      "maxLength": 64,
      "type": "string"
    },
    "height": {
      "minimum": 1,
      "type": "integer"
    },
    "media_asset_id": {
      "maxLength": 64,
      "type": "string"
    },
    "mime_type": {
      "enum": [
        "image/jpeg",
        "image/png",
        "image/webp"
      ],
      "type": "string"
    },
    "status": {
      "const": "ready"
    },
    "width": {
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "media_asset_id",
    "command_id",
    "status",
    "width",
    "height",
    "mime_type"
  ],
  "type": "object",
  "x-result-size-budget": {
    "max_bytes": 19000,
    "strategy": "bounded-result"
  }
}
```

Generated from the application’s public MCP contract at commit `25de6b1bdce5` (2026-11-24).
