Import attached CAD or STL
import_surface_attachmentImport an already attached STL/STEP/STP/3MF using the actual file reference supplied by the chat host. Prefer this over asking the user to select that file again. The API fetches and verifies its bytes and returns a ready artifact; continue view_geometry for STL, inspect_mesh_geometry and requested meshing/sections. Reuse known ready artifacts first. Never invent a download URL/file ID, use a client path or expose the temporary URL. If the host cannot hand off the attachment, use create_upload when you can run commands where the file is, otherwise open_surface_upload once. Normally omit coordinate_units (auto). Supply engineering_context from the request and expected_length_mm only if known. Inspect measured STL bounds to infer units; ask only when scale remains ambiguous. STEP/3MF use embedded units normalized to mm. Use reconstruct_cad for 3MF before downstream geometry or meshing. Does not start engineering compute. May return a pending operation_id instead of the finished result. Continue with get_operation at retry_after_seconds intervals; on success use result, then continue the requested workflow. Do not resubmit to check progress.
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>",
"file": "<file>"
},
"name": "import_surface_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| sha256 | No | ||
| filename | Yes | ||
| project_id | No | ||
| request_id | No | ||
| size_bytes | No | ||
| 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 | |||