Upload the print file
upload_layoutUpload the print file (layout) for one order item: a link (direct download link, or a public Yandex Disk / Google Drive file link) or the file content in base64. Two-sided printing needs both sides. Business cards and some flyers are checked automatically: the check server fixes the layout (CMYK, size, bleeds) and makes a preview for approval, returned by check_layout. Accepted: PDF, TIFF, JPG, PNG, CDR, EPS. Returns layout_token for create_order.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"item": "<item>"
},
"name": "upload_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City name ("Москва", "Kazan", "Almaty") or slug from find_city. Default: Moscow. | |
| item | Yes | ||
| back_url | No | Link to the back side file (two-sided printing). | |
| back_name | No | File name for back_base64. | |
| front_url | No | Link to the front side file. | |
| front_name | No | File name for front_base64, e.g. card.pdf. | |
| back_base64 | No | Back side file content, base64. | |
| front_base64 | No | Front side file content, base64 (up to 20 MB). Use instead of front_url. |