Order a 3D print
submit_print_jobCreate an order ONLY AFTER preview_print_order, image display and buyer confirmation.
First present every preview image (or the viewer fallback), dimensions, material/color,
quantity and quote. Obtain explicit buyer confirmation for that preview version.
Then send preview_id, preview_version, buyer_confirmed=true, job_name and shipping
details ONLY; omit model/options fields. Any relevant change needs a new preview.
Legacy model inputs without a preview return a preview and NEVER create an order.
Set geometry, material, color, quantities and operator notes in preview_print_order.
OpenSCAD is preferred for designs made in conversation; uploaded STL and cached
model IDs are also supported there. One preview covers the whole multi-part order.
Confirm the shipping address with the buyer. ship_to requires their full name and
US address; contact_email is used for updates. This returns a job ID and total,
plus a payment link when payment is required. The buyer pays in their own browser.
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": {
"job_name": "<job_name>"
},
"name": "submit_print_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Filament color, e.g. black or white. | |
| notes | No | Optional notes for the operator, e.g. which face should look best. | |
| parts | No | The WHOLE order, one entry per part. Use a model_id from earlier validation, an STL, or OpenSCAD. Each entry has its own name, material, color and quantity. Each part's quantity is capped by its own print time, not a flat count. Shipping and handling are charged once; never add independent quote totals. | |
| ship_to | No | Required. Recipient's full name and US street address, including city, state and ZIP. We ship within the United States only. | |
| job_name | Yes | A short name for the item, shown on the order and the receipt, e.g. "Desk cable clip". | |
| material | No | Print material: pla or petg. | |
| quantity | No | How many identical copies. Capped by print time, not a flat number; the totals cover all of them. | |
| preview_id | No | The id returned by preview_print_order for the images shown to the buyer. | |
| stl_base64 | No | The model as a base64-encoded STL file, in millimeters. Give this or openscad_source, not both. | |
| contact_email | No | The buyer's email, for the receipt and order updates. | |
| buyer_confirmed | No | True ONLY after showing every preview image/options/price and receiving explicit buyer confirmation. Not proof of human viewing. | |
| openscad_source | No | OpenSCAD source for the model, in millimeters; rendered on our server. Preferred for models designed in the conversation. Give this or stl_base64, not both. | |
| preview_version | No | The exact preview version the buyer confirmed; changes require a new preview. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |