pinterest_media_import
Import one chat photo into one shop's photo library.
For agents: this page as Markdown.
- Group
- Granted by
-
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.
- Retry-safe
- Repeat the same
client_request_idwith the same arguments.
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
{
"client_request_id": "import-photo",
"file": {
"file_id": "chat-photo",
"download_url": "https://files.test/photo.png"
}
}{
"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"
}
}Schemas
Exactly what the server declares to MCP clients. The input_schema is what the server validates arguments against.
Input schema· 53 lines of 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· 45 lines of 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"
}
}