Prepare CAD or STL upload
prepare_surface_uploadReuse an already verified STL with this checksum, size, filename and units in the same project, or open its authenticated file picker. Existing clients may keep these arguments. If artifact.state is ready, continue with that artifact; no upload is needed. Otherwise show the upload panel or labelled Upload STL link and wait for get_artifact to report ready. Never perform client-side S3 uploads, retry previous transfer URLs or run shell/network commands. For a fresh interactive upload, prefer open_surface_upload without computing a hash.
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": {
"filename": "<filename>",
"size_bytes": "<size_bytes>",
"sha256": "<sha256>"
},
"name": "prepare_surface_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | surface | |
| sha256 | Yes | ||
| filename | Yes | ||
| media_type | No | model/stl | |
| project_id | No | ||
| request_id | No | ||
| size_bytes | Yes | ||
| coordinate_units | No | Normally auto. STEP/STP/3MF use embedded units normalized to mm. STL units are resolved from measured bounds and supplied engineering context; ambiguous scale requires one clarification. | auto |
| expected_length_mm | No | Optional known approximate longest overall dimension in millimetres. Supply only when known from the user or source evidence, not an invented guess. | |
| engineering_context | No | Brief supplied engineering context, e.g. a full-size passenger car or a GPU cold plate. Do not infer context from a filename alone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||