This page is the technical MCP reference for connector behavior. It is intentionally stricter than the generic REST docs because it describes the exact chat-facing tool contracts, common LLM mistakes, and output rendering rules used by the Pixelixe MCP server.
Use this page for: ChatGPT apps, Claude connectors, n8n, Make, MCP servers, and agent workflows.
Use /docs/v2 for: the main human REST/API reference.
If you need the commercial overview before the tool-level contract details, start with API for AI, then compare the MCP server for on-brand graphic generation and platform-specific setup paths.
Product-level overview of Pixelixe as the MCP server for on-brand graphic generation.
See how Claude reasoning pairs with Pixelixe execution for structured creative workflows.
See how ChatGPT can move from prompt handling to reusable branded asset production.
See how n8n workflows can use Pixelixe as a brand-safe visual rendering step between triggers and delivery.
Returns the MCP docs URL, REST docs URL, schema notes, strict contract summary, examples, and output rules for another Pixelixe tool.
Lists or filters saved documents. This is the main discovery tool before selecting a document to reuse in template automation.
Convenience wrapper over Search Documents for a single document_uid, with optional inline preview image.
Lists or filters Design Sets and summarizes all included formats before batch generation.
Maps to templateEngine. It edits an existing saved template and reuses its layout. It is not a free-form layout API.
Maps to bulkGraphicAutomation. It generates one manifest for all formats inside a Design Set from one shared modifications payload.
Maps to createGraphicFromAPI. It creates a brand new editable layout from a strict JSON document.
Authentication
The MCP server expects Authorization: Bearer .... Depending on the client, this can be a direct Pixelixe API key or an MCP OAuth access token.
Contract policy
The historical Cloud Functions accept some legacy aliases. The MCP layer is intentionally stricter and documents the canonical field names the assistant should send.
Studio safety
This reference does not assume any Studio deep-link. MCP outputs focus on assets, URLs, and inline previews without modifying Studio routing.
The JSON payload is preserved, but the assistant should explain results in product language and show visuals when the server already provides them.
| Case | Expected assistant behavior |
|---|---|
| Search results | Summarize the list in plain language. Mention name, format (width x height), document_uid, preview URL, HTML URL, and available modification names. Do not inline every preview image in a list. |
| Single document | If a preview image exists, the MCP server may attach it inline as an image content block. The assistant should still explain what the document is and include the URLs. |
| Design Set search results | Summarize each Design Set in plain language. Mention name, design_set_uid, category, source document, preview URL, and the list of formats with dimensions and document_uid values. Do not inline every format preview image. |
| Graphic variant, binary image response | Display the image directly to the user. If the response is JSON instead, show the returned image or HTML URLs and summarize what was generated. |
| Create multiple images | Summarize the returned manifest in plain language. Mention status, success_count, error_count, then list each result with its name, dimensions, document_uid, returned asset URL, or error. Do not inline every generated image in the batch. |
Create graphic with save_document=false |
Render or show the returned HTML directly. Do not claim the document was saved, and do not invent a document_uid. |
Create graphic with save_document=true |
Show the generated image, provide the returned html_url, and mention the saved document_uid. If the server can fetch the image safely, it may also attach it inline. |
| Inline image fallback | If inline image fetch fails, times out, or exceeds the size limit, the tool still succeeds. The assistant should fall back to the returned URLs. |
Use top and left only for JSON to Graphic. Never use x and y. Never send layout coordinates at all to pixelixe_generate_graphic_variant.
Do not use root key background. Use background_color, background_gradient, or background_image. Do not put a background item inside modifications.
Use exact snake_case or hyphenated keys such as image_url, font-size, font-family, background-color, and text-align. Do not invent camelCase aliases.
Use pixelixe_create_graphic_from_json to create a new layout. Use pixelixe_generate_graphic_variant only when you already have a saved template and want to target existing elements.
In JSON to Graphic, use root background_image. In template automation, target the existing template element named background-image with image_url.
If save_document=false, show the returned HTML. If save_document=true or a JSON variant response returns URLs, show the asset and links instead of dumping raw JSON.
Use this first when the assistant is unsure about the exact MCP contract for a generation tool. It is a documentation helper, not a business action.
{
"tool_name": "pixelixe_create_graphic_from_json"
}
Returned fields include: docs_url, rest_docs_url, when_to_use, when_not_to_use, required_inputs, example_arguments, schema_notes, strict_contract, and output_handling.
Recommended use: call this before pixelixe_generate_graphic_variant or pixelixe_create_graphic_from_json when the user request is ambiguous.
{
"created_by": "owner",
"width": 1080,
"height": 1080
}
Related REST docs: Search Documents API
user_uid | Optional exact user filter. |
document_uid | Optional exact document filter. |
created_by | owner or api-editor. |
width | Optional pixel width. |
height | Optional pixel height. |
folder_path | Optional folder path. |
Returned document fields: name, width, height, last_modification_date, public_png_url, public_html_url, available_modifications, document_uid, and folder_path.
Recommended assistant behavior: present the list in plain language and use the returned document_uid for the next call to pixelixe_get_document or pixelixe_generate_graphic_variant.
Single-document retrieval built on top of Search Documents with document_uid.
{
"document_uid": "32f59312815640e186cf17fe3fd5c1d9"
}
public_png_url exists and the fetch is safe, the server may attach a true MCP inline image block.{
"category": "social",
"limit": 10,
"offset": 0
}
Related REST docs: Search Design Sets API
design_set_uid | Optional exact Design Set filter. |
source_document_uid | Optional exact source document filter. |
category | Optional category filter. |
limit | Optional pagination size. |
offset | Optional pagination offset. |
Returned Design Set fields: design_set_uid, name, category, source_document_uid, source_document_name, last_modification_date, available_modifications, and formats.
Returned format fields: name, width, height, document_uid, template, template_url, and public asset URLs when present.
Recommended assistant behavior: summarize the Design Set list in plain language, mention the editable field names from the Design Set root when present, then use the returned design_set_uid for pixelixe_create_multiple_images.
templateEngine.{
"document_uid": "32f59312815640e186cf17fe3fd5c1d9",
"format": "json",
"modifications": [
{
"element_name": "headline",
"type": "text",
"text": "Summer Sale"
},
{
"element_name": "background-image",
"type": "image",
"image_url": "https://example.com/hero.jpg",
"width": "cover",
"height": "cover"
}
]
}
Related REST docs: Image Automation API
document_uid template_name template_url format image_type custom_field uid document_uid_verified csv_uid modifications
Required: one of document_uid, template_name, or template_url.
name element_name type text image_url color background-color border-color border-size font-size font-family text-align width height visible shape
text | element_name + text |
image | element_name + image_url |
icon | element_name |
shape | element_name |
Special values: format = image, json, base64, pdf, html. image_type = png or jpeg. width/height may use cover, auto, original, or a CSS-like pixel/string value.
Important runtime rules from templateEngine:
Do not use top, left, x, or y. The template already defines layout. Use element_name to target existing elements; name is only a compatibility fallback. Use background-color to recolor an existing element, or target the special existing element background-image with image_url. If background-color targets the background, the runtime removes the background image.
Forbidden MCP patterns: background_color, background_gradient, background_image, camelCase aliases, and layout coordinates.
Output behavior: if the upstream response is binary image, show it directly. If it is JSON, show image_url or html_url and any attached inline image. If it is HTML, render or display the HTML.
Strict MCP wrapper around bulkGraphicAutomation for generating one manifest across all formats in a Design Set.
{
"design_set_uid": "brand-social-pack",
"format": "image",
"image_type": "png",
"modifications": [
{
"element_name": "headline",
"type": "text",
"text": "Summer Sale"
},
{
"element_name": "background-image",
"type": "image",
"image_url": "https://example.com/hero.jpg",
"width": "cover",
"height": "cover"
}
]
}
design_set_uid format image_type custom_field uid document_uid_verified csv_uid modifications
Required: design_set_uid.
Related REST docs: Create Multiple Images API
image | Generate image URLs for each Design Set format. |
html | Generate HTML URLs for each Design Set format. |
pdf | Generate PDF URLs for each Design Set format. |
json | Legacy compatibility alias accepted by the MCP wrapper and treated like the image manifest behavior. |
The response always stays list-oriented and includes status, design_set_uid, requested_format, image_type, success_count, error_count, and results.
Each result item may contain image_url, html_url, pdf_url, or error. The assistant should summarize the manifest instead of dumping raw JSON or inlining every image.
Important runtime rules: use the same template automation modification contract as pixelixe_generate_graphic_variant. Do not use top, left, x, y, or JSON-to-Graphic root keys such as background_color.
Runtime note: bulk generation can take much longer than search or single-image calls because Pixelixe processes one format at a time. The MCP gateway uses a dedicated long upstream timeout for this tool.
Recommended assistant behavior: present the overall batch status first, then list each format result with dimensions, document_uid, URL, or error message.
Strict MCP wrapper around createGraphicFromAPI and buildPixelixeHtmlFromJson.
{
"document_name": "launch_post",
"save_document": true,
"width": 1080,
"height": 1080,
"background_color": "#f5f7fb",
"modifications": [
{
"name": "headline",
"type": "text",
"text": "New Sneaker Drop",
"top": 80,
"left": 60,
"font-size": 72,
"color": "#111111"
},
{
"name": "hero-image",
"type": "image",
"image_url": "https://example.com/sneaker.png",
"top": 240,
"left": 120,
"width": 840,
"height": 600,
"object-fit": "cover"
}
]
}
width height modifications
When save_document=true: document_name becomes required and must be alphanumeric with _ or - only.
Related REST docs: JSON to Graphic API
document_name save_document width height background_color background_gradient background_filter background_image font_family custom_font_faces modifications
background-gradient background-filter background-image bgimgwidth bgimgheight bgimgleft bgimgtop origbgimgwidth origbgimgheight origimgwidth origimgheight data-keyword data_keyword
name element_name type text image_url color background-color border-color border-size border border-style border-radius box-shadow filter font-size font-family font-weight font-style text-transform text-decoration text-shadow text-stroke-width text-stroke-color line-height letter-spacing word-spacing text-indent transform opacity cursor text-rendering text-align background-gradient object-fit object-position width height top left z-index visible shape icon
text | name + type + text + top + left |
image | name + type + image_url + top + left |
shape | name + type + top + left |
icon | name + type + icon + top + left |
top and left. Never use x or y.background.type=background or a modification named background-image. Use root background_image instead.background_color, image_url, font-size, object-fit, and z-index.modifications.Runtime behavior from buildPixelixeHtmlFromJson:
The renderer reads root background values from background_color, background_gradient, background_filter, and background_image. It supports custom font loading via custom_font_faces. For elements, it renders text, image, icon, and shape. The historical runtime knows a background type internally, but the MCP contract intentionally rejects it and redirects you to root background fields.
Output behavior: when save_document=false, the endpoint returns HTML and the assistant should render or show that HTML directly. When save_document=true, the endpoint returns JSON with document_uid, image_url, and html_url; the assistant should show the generated asset and provide the links.
This MCP reference is the technical annex for connector behavior and strict schemas. For end-user setup steps in ChatGPT, Claude, n8n, Make, or Zapier, use the Help Center guide below.